[CapCalendarEvent] add a ticket field to Query
This commit is contained in:
parent
a2079bedf4
commit
9b901bed1f
1 changed files with 5 additions and 0 deletions
|
|
@ -98,6 +98,7 @@ class Query(BaseObject):
|
||||||
end_date = DateField('End date of the event')
|
end_date = DateField('End date of the event')
|
||||||
city = StringField('Name of the city in witch event will take place')
|
city = StringField('Name of the city in witch event will take place')
|
||||||
categories = Field('List of categories of the event', list, tuple)
|
categories = Field('List of categories of the event', list, tuple)
|
||||||
|
ticket = Field('List of status of the tickets sale', list, tuple)
|
||||||
summary = StringField('Title of the event')
|
summary = StringField('Title of the event')
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
|
@ -106,6 +107,10 @@ class Query(BaseObject):
|
||||||
for value in CATEGORIES.values:
|
for value in CATEGORIES.values:
|
||||||
self.categories.append(value)
|
self.categories.append(value)
|
||||||
|
|
||||||
|
self.ticket = []
|
||||||
|
for value in TICKET.values:
|
||||||
|
self.ticket.append(value)
|
||||||
|
|
||||||
|
|
||||||
class CapCalendarEvent(CapCollection):
|
class CapCalendarEvent(CapCollection):
|
||||||
"""
|
"""
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue