X-Git-Url: http://git.ithinksw.org/philo.git/blobdiff_plain/785b59352880027f54ea0e81335d179eccee75f1..bf78e0c846297a4f732ffdfc181b3c89428fd2a4:/contrib/julian/admin.py?ds=inline diff --git a/contrib/julian/admin.py b/contrib/julian/admin.py index 10bc6f9..8f104e2 100644 --- a/contrib/julian/admin.py +++ b/contrib/julian/admin.py @@ -19,7 +19,7 @@ class EventAdmin(EntityAdmin): 'fields': (('start_date', 'start_time'), ('end_date', 'end_time'),), }), ('Advanced', { - 'fields': ('parent_event', 'uuid',), + 'fields': ('parent_event', 'site',), 'classes': COLLAPSE_CLASSES }) ) @@ -40,7 +40,7 @@ class CalendarAdmin(EntityAdmin): 'fields': ('name', 'description', 'events') }), ('Advanced', { - 'fields': ('slug', 'uuid'), + 'fields': ('slug', 'site', 'language',), 'classes': COLLAPSE_CLASSES }) ) @@ -70,6 +70,8 @@ class CalendarViewAdmin(EntityAdmin): 'classes': COLLAPSE_CLASSES }) ) + raw_id_fields = ('index_page', 'event_detail_page', 'timespan_page', 'tag_page', 'location_page', 'owner_page', 'location_archive_page', 'tag_archive_page', 'owner_archive_page', 'item_title_template', 'item_description_template',) + related_lookup_fields = {'fk': raw_id_fields} admin.site.register(Location, LocationAdmin)