X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/1227b1201c537ea17e310f0faab4ead7cf0d25af..ecd1f5bc214a8ba61b65d4d00a7e7d09a8c8fa3a:/src/annoy/admin.py?ds=sidebyside diff --git a/src/annoy/admin.py b/src/annoy/admin.py index 3f2bd3dd8..8470a1203 100644 --- a/src/annoy/admin.py +++ b/src/annoy/admin.py @@ -5,9 +5,13 @@ from . import models class BannerAdmin(TranslationAdmin): - list_display = ['place', 'text', 'priority', 'since', 'until', 'show_members', 'staff_preview'] + list_display = [ + 'place', 'text', + 'text_color', 'background_color', + 'priority', 'since', 'until', + 'show_members', 'staff_preview', 'only_authenticated'] + - admin.site.register(models.Banner, BannerAdmin) @@ -27,7 +31,7 @@ class DynamicTextInsertTextInline(admin.TabularInline): fields = ['text', 'image', 'own_colors', 'background_color', 'text_color'] extra = 0 min_num = 1 - + class DynamicTextInsertAdmin(admin.ModelAdmin):