X-Git-Url: https://git.mdrn.pl/prawokultury.git/blobdiff_plain/3f6f55a25872c1d1465f7bdb59e8a766da9c51cc..76f56b2aa3a39a1063a7ffa0071df169f85a5bdf:/migdal/admin.py diff --git a/migdal/admin.py b/migdal/admin.py index 4222368..d93a782 100644 --- a/migdal/admin.py +++ b/migdal/admin.py @@ -17,11 +17,13 @@ class AttachmentInline(admin.TabularInline): class EntryAdmin(admin.ModelAdmin): date_hierarchy = 'date' + readonly_fields = ('date', 'changed_at') + translated_fields(('published_at',)) fieldsets = ( - (None, {'fields': (('type', 'promo'), 'author', 'author_email', 'image')}), + (None, {'fields': (('type', 'promo'), 'author', 'author_email', 'image', 'date', 'changed_at')}), ) + tuple( (ln, {'fields': ( ('published_%s' % lc), + 'published_at_%s' % lc, 'title_%s' % lc, 'slug_%s' % lc, 'lead_%s' % lc, @@ -31,6 +33,7 @@ class EntryAdmin(admin.ModelAdmin): ) + tuple( (ln, {'fields': ( ('needed_%s' % lc, 'published_%s' % lc), + 'published_at_%s' % lc, 'title_%s' % lc, 'slug_%s' % lc, 'lead_%s' % lc,