X-Git-Url: https://git.mdrn.pl/django-migdal.git/blobdiff_plain/d701357a0efedcc2420a570dda6aabce9fac728e..05d1be6e85dc92e7be6aebb8b62221480c10540e:/migdal/admin.py?ds=inline diff --git a/migdal/admin.py b/migdal/admin.py index 8ed11ea..6d4bffe 100644 --- a/migdal/admin.py +++ b/migdal/admin.py @@ -78,16 +78,15 @@ def filtered_entry_admin(typ): for lang_code, lang_name in settings.LANGUAGES ]) - list_display = translated_fields(('title',), - app_settings.OBLIGATORY_LANGUAGES) + \ - ('date', 'author') + \ - _promo_if_necessary + \ - ('in_stream', 'first_published_at',) + \ - translated_fields(('published_at',)) + \ - translated_fields(('needed',), app_settings.OPTIONAL_LANGUAGES) + list_display = translated_fields(('title',), app_settings.OBLIGATORY_LANGUAGES) + \ + ('date', 'author') + \ + _promo_if_necessary + \ + ('in_stream', 'first_published_at',) + \ + translated_fields(('published_at',)) + \ + translated_fields(('needed',), app_settings.OPTIONAL_LANGUAGES) list_filter = _promo_if_necessary + \ - translated_fields(('published',)) + \ - translated_fields(('needed',), app_settings.OPTIONAL_LANGUAGES) + translated_fields(('published',)) + \ + translated_fields(('needed',), app_settings.OPTIONAL_LANGUAGES) inlines = (AttachmentInline,) search_fields = ('title_pl', 'title_en') return EntryAdmin