[CapCalendarEvent] default values for Query fields
This commit is contained in:
parent
3c1b69fdea
commit
ec13db7de2
1 changed files with 2 additions and 12 deletions
|
|
@ -97,20 +97,10 @@ class Query(BaseObject):
|
|||
start_date = DateField('Start date of the event')
|
||||
end_date = DateField('End date of the event')
|
||||
city = StringField('Name of the city in witch event will take place')
|
||||
categories = Field('List of categories of the event', list, tuple)
|
||||
ticket = Field('List of status of the tickets sale', list, tuple)
|
||||
categories = Field('List of categories of the event', list, tuple, default=CATEGORIES.values)
|
||||
ticket = Field('List of status of the tickets sale', list, tuple, default=TICKET.values)
|
||||
summary = StringField('Title of the event')
|
||||
|
||||
def __init__(self):
|
||||
BaseObject.__init__(self, '')
|
||||
self.categories = []
|
||||
for value in CATEGORIES.values:
|
||||
self.categories.append(value)
|
||||
|
||||
self.ticket = []
|
||||
for value in TICKET.values:
|
||||
self.ticket.append(value)
|
||||
|
||||
|
||||
class CapCalendarEvent(CapCollection):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue