fnp
/
prawokultury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cas
[prawokultury.git]
/
events
/
admin.py
diff --git
a/events/admin.py
b/events/admin.py
index
e75c047
..
f15f554
100644
(file)
--- a/
events/admin.py
+++ b/
events/admin.py
@@
-9,10
+9,22
@@
from migdal.helpers import translated_fields
class EventAdmin(admin.ModelAdmin):
class EventAdmin(admin.ModelAdmin):
+ fieldsets = (
+ (None, {'fields': ('date', 'date_end', 'link')}),
+ ) + tuple(
+ (ln, {'fields': (
+ ('published_%s' % lc),
+ 'title_%s' % lc,
+ 'organizer_%s' % lc,
+ 'place_%s' % lc,
+ )})
+ for lc, ln in settings.LANGUAGES
+ )
list_display = translated_fields(
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)