X-Git-Url: http://git.ithinksw.org/philo.git/blobdiff_plain/6b33b7bcb0da390da4bb1928750f5cdbe1a6800c..21a2199a2b91086d6cfefb93975566598db4149f:/contrib/julian/admin.py diff --git a/contrib/julian/admin.py b/contrib/julian/admin.py index c8ef95a..f976e82 100644 --- a/contrib/julian/admin.py +++ b/contrib/julian/admin.py @@ -1,5 +1,5 @@ from django.contrib import admin -from philo.admin import EntityAdmin +from philo.admin import EntityAdmin, COLLAPSE_CLASSES from philo.contrib.julian.models import Location, Event, Calendar, ICalendarFeedView @@ -8,20 +8,26 @@ class LocationAdmin(EntityAdmin): class EventAdmin(EntityAdmin): - #fieldsets = ( - # (None, { - # 'fields': ('name', 'slug' 'description', 'tags', 'parent_event', 'owner') - # }), - # ('Location', { - # 'fields': ('location_content_type', 'location_pk') - # }), - # ('Time', { - # 'fields': (('start_date', 'start_time'), ('end_date', 'end_time'),), - # }) - #) + fieldsets = ( + (None, { + 'fields': ('name', 'slug', 'description', 'tags', 'owner') + }), + ('Location', { + 'fields': ('location_content_type', 'location_pk') + }), + ('Time', { + 'fields': (('start_date', 'start_time'), ('end_date', 'end_time'),), + }), + ('Advanced', { + 'fields': ('parent_event', 'uuid',), + 'classes': COLLAPSE_CLASSES + }) + ) related_lookup_fields = { 'generic': [["location_content_type", "location_pk"]] } + filter_horizontal = ['tags'] + raw_id_fields = ['parent_event'] class CalendarAdmin(EntityAdmin):