Hack some poorly implemented serializer.
TODO: this breaks everything
This commit is contained in:
parent
2631c344dd
commit
70e6641e24
@ -17,5 +17,8 @@ class Duck( Base ):
|
||||
color = sa.Column( sa.String )
|
||||
|
||||
def __repr__(self):
|
||||
return "<User(name='%s', fullname='%s', password='%s')>" % (
|
||||
self.name, self.fullname, self.password)
|
||||
return '{"duck_id": "'+ ( str( self.duck_id ) or '0' ) +'", "name": "'+ self.name +'", "color": "'+ self.color +'" }'
|
||||
|
||||
def __init__(self, name, color):
|
||||
self.name = name
|
||||
self.color = color
|
||||
|
Loading…
Reference in New Issue
Block a user