sueurdemetal: implement object filling
This commit is contained in:
parent
bff3bd7845
commit
2a1dc12e97
1 changed files with 7 additions and 0 deletions
|
|
@ -109,3 +109,10 @@ class SueurDeMetalBackend(BaseBackend, ICapCalendarEvent):
|
||||||
for c in self.cities.values():
|
for c in self.cities.values():
|
||||||
if c['id'] == _id:
|
if c['id'] == _id:
|
||||||
return c['name']
|
return c['name']
|
||||||
|
|
||||||
|
def fill_concert(self, obj, fields):
|
||||||
|
if set(fields) & set(('price', 'location', 'description')):
|
||||||
|
return self.get_event(obj.id)
|
||||||
|
return obj
|
||||||
|
|
||||||
|
OBJECTS = {Concert: fill_concert}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue