From 60bd4ea831b6af2af9b956bcb2d78d2ddb429244 Mon Sep 17 00:00:00 2001 From: Sanjay B Date: Sat, 6 Apr 2013 01:40:43 +0530 Subject: [PATCH] minor, fix indentation --- itf/events/models.py | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/itf/events/models.py b/itf/events/models.py index 5f9c45f..478e779 100644 --- a/itf/events/models.py +++ b/itf/events/models.py @@ -64,7 +64,7 @@ class Event(ItfModel): # for key in link_keys: # conn[key]= [obj for obj in links if obj.type==key] #add conn keys to main dict - rdict = { + rdict = { 'title': self.title, 'oneliner': self.oneliner, 'description': self.description, @@ -86,17 +86,17 @@ class Event(ItfModel): 'galleries': [obj for obj in self.galleries.all()], } - if self.parent_event: - rdict['parent'] = self.parent_event - if self.people.all(): - people= { - 'attendees': [ obj.person for obj in self.personevent_set.filter(typ='attendee')], - 'organisers': [ obj.person for obj in self.personevent_set.filter(typ='organiser')], - 'performers': [ obj.person for obj in self.personevent_set.filter(typ='performer')] - } - rdict['people']= people + if self.parent_event: + rdict['parent'] = self.parent_event + if self.people.all(): + people= { + 'attendees': [ obj.person for obj in self.personevent_set.filter(typ='attendee')], + 'organisers': [ obj.person for obj in self.personevent_set.filter(typ='organiser')], + 'performers': [ obj.person for obj in self.personevent_set.filter(typ='performer')] + } + rdict['people']= people - return rdict + return rdict PERSON_EVENT_CHOICES = (