X-Git-Url: https://git.mdrn.pl/django-migdal.git/blobdiff_plain/fe16cac52a33bd593bc8916415dc939d32dfb8f3..d701357a0efedcc2420a570dda6aabce9fac728e:/migdal/admin.py diff --git a/migdal/admin.py b/migdal/admin.py index 1a7fdd7..8ed11ea 100644 --- a/migdal/admin.py +++ b/migdal/admin.py @@ -37,14 +37,15 @@ def filtered_entry_admin(typ): return field date_hierarchy = 'date' - readonly_fields = ('date', 'changed_at') + \ + readonly_fields = ('date', 'changed_at', 'first_published_at') + \ translated_fields(('published_at',)) _promo_if_necessary = ('promo',) if typ.promotable else () fieldsets = ( (None, { 'fields': _promo_if_necessary + ( - 'author', 'author_email', 'image', 'date', 'changed_at') + 'in_stream', 'author', 'author_email', 'canonical_url', 'image', + 'date', 'first_published_at', 'changed_at') }), ) + tuple( (ln, {'fields': ( @@ -81,6 +82,7 @@ def filtered_entry_admin(typ): 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 + \