From ade8816ec3d616679f0d882de72cd50c298ac85f Mon Sep 17 00:00:00 2001 From: Johnson Chetty Date: Fri, 5 Apr 2013 22:03:58 +0200 Subject: [PATCH] get dict for Event done mostly --- itf/events/models.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/itf/events/models.py b/itf/events/models.py index 28fd660..5f9c45f 100644 --- a/itf/events/models.py +++ b/itf/events/models.py @@ -82,9 +82,8 @@ class Event(ItfModel): 'image':self.image, 'production':self.production, 'buzzitems': [ obj for obj in self.buzzitems.all()], - - #'group':, - #'galleries':, + 'groups': [obj for obj in self.groupevent_set.all()], + 'galleries': [obj for obj in self.galleries.all()], } if self.parent_event: @@ -97,7 +96,7 @@ class Event(ItfModel): } rdict['people']= people - + return rdict PERSON_EVENT_CHOICES = (