drop istemporary lot
This commit is contained in:
parent
e4554a9e27
commit
8d1e6bb2d7
|
@ -28,4 +28,3 @@ class Lot(Thing):
|
|||
receiver_address = SanitizedStr(validate=f.validate.Length(max=42))
|
||||
deliverynote = NestedOn(s_deliverynote.Deliverynote, dump_only=True)
|
||||
trade = NestedOn(s_action.Trade, dump_only=True)
|
||||
is_temporary = f.Boolean(missing=True, data_key='isTemporary')
|
||||
|
|
|
@ -31,7 +31,6 @@ class LotView(View):
|
|||
|
||||
def post(self):
|
||||
l = request.get_json()
|
||||
l.pop('is_temporary', '')
|
||||
lot = Lot(**l)
|
||||
db.session.add(lot)
|
||||
db.session().final_flush()
|
||||
|
|
Reference in a new issue