Commit 59353e1b by Bill DeRusha

Add program fields to admin

parent 8823e0d2
......@@ -75,8 +75,9 @@ class ProgramAdmin(admin.ModelAdmin):
# ordering the field display on admin page.
fields = (
'title', 'status', 'type', 'partner', 'banner_image',
'banner_image_url', 'card_image_url', 'overview', 'video',
'title', 'subtitle', 'status', 'type', 'partner', 'banner_image', 'banner_image_url', 'card_image_url',
'marketing_slug', 'overview', 'video', 'weeks_to_complete', 'min_hours_effort_per_week',
'max_hours_effort_per_week',
)
fields += (
'courses', 'custom_course_runs_display', 'excluded_course_runs', 'authoring_organizations',
......
......@@ -11,8 +11,7 @@ class ProgramAdminForm(forms.ModelForm):
class Meta:
model = Program
exclude = (
'subtitle', 'category', 'marketing_slug', 'weeks_to_complete',
'min_hours_effort_per_week', 'max_hours_effort_per_week',
'category',
)
widgets = {
'courses': autocomplete.ModelSelect2Multiple(
......
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