X-Git-Url: https://git.mdrn.pl/prawokultury.git/blobdiff_plain/44090c986d9a16f6913047c25319c446bb9308ad..8debbb6ca3804057fe0458a6c2ac579bc9e91162:/migdal/admin.py diff --git a/migdal/admin.py b/migdal/admin.py index d7a7224..ac0e640 100644 --- a/migdal/admin.py +++ b/migdal/admin.py @@ -22,7 +22,7 @@ class AttachmentInline(admin.TabularInline): class EntryAdmin(admin.ModelAdmin): fieldsets = ( - (None, {'fields': ('type', 'author', 'author_email', 'image')}), + (None, {'fields': (('type', 'promo'), 'author', 'author_email', 'image')}), ) + tuple( (ln, {'fields': ( ('published_%s' % lc), @@ -59,7 +59,7 @@ class EntryAdmin(admin.ModelAdmin): class CategoryAdmin(admin.ModelAdmin): - list_display = translated_fields(('title', 'slug')) + list_display = translated_fields(('title', 'slug')) + ('taxonomy',) prepopulated_fields = dict([ ("slug_%s" % lang_code, ("title_%s" % lang_code,)) for lang_code, lang_name in settings.LANGUAGES