From 8d1e6bb2d70a765a9198584b57d22fb930c831f3 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Thu, 3 Jun 2021 12:11:14 +0200 Subject: [PATCH] drop istemporary lot --- ereuse_devicehub/resources/lot/schemas.py | 1 - ereuse_devicehub/resources/lot/views.py | 1 - 2 files changed, 2 deletions(-) diff --git a/ereuse_devicehub/resources/lot/schemas.py b/ereuse_devicehub/resources/lot/schemas.py index 0d584ca7..2119c048 100644 --- a/ereuse_devicehub/resources/lot/schemas.py +++ b/ereuse_devicehub/resources/lot/schemas.py @@ -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') diff --git a/ereuse_devicehub/resources/lot/views.py b/ereuse_devicehub/resources/lot/views.py index 35a82a16..7e7169ba 100644 --- a/ereuse_devicehub/resources/lot/views.py +++ b/ereuse_devicehub/resources/lot/views.py @@ -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()