minor, fix indentation

This commit is contained in:
Sanjay B 2013-04-06 01:40:43 +05:30
parent ade8816ec3
commit 60bd4ea831

View File

@ -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 = (