minor, fix indentation
This commit is contained in:
parent
ade8816ec3
commit
60bd4ea831
|
@ -64,7 +64,7 @@ class Event(ItfModel):
|
||||||
# for key in link_keys:
|
# for key in link_keys:
|
||||||
# conn[key]= [obj for obj in links if obj.type==key]
|
# conn[key]= [obj for obj in links if obj.type==key]
|
||||||
#add conn keys to main dict
|
#add conn keys to main dict
|
||||||
rdict = {
|
rdict = {
|
||||||
'title': self.title,
|
'title': self.title,
|
||||||
'oneliner': self.oneliner,
|
'oneliner': self.oneliner,
|
||||||
'description': self.description,
|
'description': self.description,
|
||||||
|
@ -86,17 +86,17 @@ class Event(ItfModel):
|
||||||
'galleries': [obj for obj in self.galleries.all()],
|
'galleries': [obj for obj in self.galleries.all()],
|
||||||
|
|
||||||
}
|
}
|
||||||
if self.parent_event:
|
if self.parent_event:
|
||||||
rdict['parent'] = self.parent_event
|
rdict['parent'] = self.parent_event
|
||||||
if self.people.all():
|
if self.people.all():
|
||||||
people= {
|
people= {
|
||||||
'attendees': [ obj.person for obj in self.personevent_set.filter(typ='attendee')],
|
'attendees': [ obj.person for obj in self.personevent_set.filter(typ='attendee')],
|
||||||
'organisers': [ obj.person for obj in self.personevent_set.filter(typ='organiser')],
|
'organisers': [ obj.person for obj in self.personevent_set.filter(typ='organiser')],
|
||||||
'performers': [ obj.person for obj in self.personevent_set.filter(typ='performer')]
|
'performers': [ obj.person for obj in self.personevent_set.filter(typ='performer')]
|
||||||
}
|
}
|
||||||
rdict['people']= people
|
rdict['people']= people
|
||||||
|
|
||||||
return rdict
|
return rdict
|
||||||
|
|
||||||
|
|
||||||
PERSON_EVENT_CHOICES = (
|
PERSON_EVENT_CHOICES = (
|
||||||
|
|
Loading…
Reference in New Issue
Block a user