X-Git-Url: http://git.ithinksw.org/philo.git/blobdiff_plain/051e647c3f313cb4a2a51d7b17bcfda79f192b46..a515501b68b8539e4e1b7b3e9afcebbf2004fa44:/contrib/julian/admin.py?ds=sidebyside 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)