Commit bfae6ac0 by Bill DeRusha Committed by GitHub

Merge pull request #275 from edx/awais786/ECOM-5344-add-type-in-admin

ECOM-5344
parents 6e9fc9ce df2af24c
......@@ -75,7 +75,7 @@ class ProgramAdmin(admin.ModelAdmin):
# ordering the field display on admin page.
fields = (
'title', 'status', 'banner_image_url', 'card_image_url', 'overview', 'video',
'title', 'status', 'type', 'banner_image_url', 'card_image_url', 'overview', 'video',
)
fields += (
'courses', 'course_runs', 'excluded_course_runs'
......
......@@ -9,11 +9,15 @@ class ProgramAdminForm(forms.ModelForm):
class Meta:
model = Program
exclude = (
'subtitle', 'category', 'type', 'marketing_slug', 'weeks_to_complete',
'subtitle', 'category', 'marketing_slug', 'weeks_to_complete',
'min_hours_effort_per_week', 'max_hours_effort_per_week',
'authoring_organizations',
)
def __init__(self, *args, **kwargs):
super(ProgramAdminForm, self).__init__(*args, **kwargs)
self.fields['type'].required = True
class CourseRunSelectionForm(forms.ModelForm):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment