Skip to content

Commit

Permalink
Merge pull request #2631 from rtfd/easier-promo-editing
Browse files Browse the repository at this point in the history
Allow editing of promo attributes in list view
  • Loading branch information
ericholscher committed Feb 8, 2017
2 parents 5732b1f + 32bd66b commit 5b5ffb5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions readthedocs/donate/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ class SupporterPromoAdmin(admin.ModelAdmin):
list_display = ('name', 'live', 'click_ratio', 'sold_impressions',
'total_views', 'total_clicks')
list_filter = ('live', 'display_type')
list_editable = ('live', 'sold_impressions')
readonly_fields = ('total_views', 'total_clicks')
inlines = [ImpressionInline, GeoFilterInline]
actions = [set_default_countries]
Expand Down

0 comments on commit 5b5ffb5

Please sign in to comment.