X-Git-Url: http://git.ithinksw.org/philo.git/blobdiff_plain/f212afea06d9af47d895b6b5be592eba347910cf..141d730603d718a49a82bef3e3540450cb09b691:/contrib/julian/admin.py 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)