Add org-course (and any future KEY_FIELDS) to FBE django admin pages

This commit is contained in:
Calen Pennington
2019-03-12 13:52:56 -04:00
parent d5c50533e1
commit c21e01e3ee
2 changed files with 2 additions and 2 deletions

View File

@@ -15,7 +15,7 @@ from .models import ContentTypeGatingConfig
class ContentTypeGatingConfigAdmin(StackedConfigModelAdmin):
fieldsets = (
('Context', {
'fields': ('site', 'org', 'course'),
'fields': ContentTypeGatingConfig.KEY_FIELDS,
'description': _(
'These define the context to enable course duration limits on. '
'If no values are set, then the configuration applies globally. '

View File

@@ -15,7 +15,7 @@ from .models import CourseDurationLimitConfig
class CourseDurationLimitConfigAdmin(StackedConfigModelAdmin):
fieldsets = (
('Context', {
'fields': ('site', 'org', 'course'),
'fields': CourseDurationLimitConfig.KEY_FIELDS,
'description': _(
'These define the context to enable course duration limits on. '
'If no values are set, then the configuration applies globally. '