drop istemporary lot

This commit is contained in:
Cayo Puigdefabregas 2021-06-03 12:11:14 +02:00
parent e4554a9e27
commit 8d1e6bb2d7
2 changed files with 0 additions and 2 deletions

View File

@ -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')

View File

@ -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()