X-Git-Url: https://git.mdrn.pl/prawokultury.git/blobdiff_plain/7a47f04940f28745309716d725b63a8278b29e62..9b6d232f7a8bc0ed1f9b090c06c8438db14e8179:/events/admin.py?ds=sidebyside diff --git a/events/admin.py b/events/admin.py index 0cac1e0..794fa52 100644 --- a/events/admin.py +++ b/events/admin.py @@ -21,9 +21,10 @@ class EventAdmin(admin.ModelAdmin): for lc, ln in settings.LANGUAGES ) list_display = translated_fields( - ('title', 'place', 'organizer'), settings.LANGUAGES + ('title', 'place', 'organizer', 'published'), settings.LANGUAGES ) + ('date',) date_hierarchy = 'date' + list_filter = translated_fields(('published',)) admin.site.register(Event, EventAdmin)