fnp
/
prawokultury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tighter menu
[prawokultury.git]
/
events
/
admin.py
diff --git
a/events/admin.py
b/events/admin.py
index
0cac1e0
..
b584b6f
100644
(file)
--- a/
events/admin.py
+++ b/
events/admin.py
@@
-4,8
+4,8
@@
#
from django.conf import settings
from django.contrib import admin
#
from django.conf import settings
from django.contrib import admin
+from fnpdjango.utils.models.translation import translated_fields
from events.models import Event
from events.models import Event
-from migdal.helpers import translated_fields
class EventAdmin(admin.ModelAdmin):
class EventAdmin(admin.ModelAdmin):
@@
-21,9
+21,10
@@
class EventAdmin(admin.ModelAdmin):
for lc, ln in settings.LANGUAGES
)
list_display = translated_fields(
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'
) + ('date',)
date_hierarchy = 'date'
+ list_filter = translated_fields(('published',))
admin.site.register(Event, EventAdmin)
admin.site.register(Event, EventAdmin)