[CapTravel] brwser2 adaptation : do not require an id in costructor
This commit is contained in:
parent
732417b94a
commit
158d3fb627
1 changed files with 2 additions and 2 deletions
|
|
@ -32,7 +32,7 @@ class Station(BaseObject):
|
|||
"""
|
||||
name = StringField('Name of station')
|
||||
|
||||
def __init__(self, id, name):
|
||||
def __init__(self, id=None, name=None):
|
||||
BaseObject.__init__(self, id)
|
||||
self.name = name
|
||||
|
||||
|
|
@ -55,7 +55,7 @@ class Departure(BaseObject):
|
|||
price = DecimalField('Price of ticket')
|
||||
currency = StringField('Currency', default=None)
|
||||
|
||||
def __init__(self, id, _type, _time):
|
||||
def __init__(self, id=None, _type=None, _time=None):
|
||||
BaseObject.__init__(self, id)
|
||||
|
||||
self.type = _type
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue