From 589c399231e5783a4a1ce1c572787c34a438a0cb Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Mon, 7 Jun 2021 13:10:28 +0200 Subject: [PATCH] fixing relation files interdependences --- ereuse_devicehub/resources/tradedocument/schemas.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ereuse_devicehub/resources/tradedocument/schemas.py b/ereuse_devicehub/resources/tradedocument/schemas.py index 549017c4..e565afc2 100644 --- a/ereuse_devicehub/resources/tradedocument/schemas.py +++ b/ereuse_devicehub/resources/tradedocument/schemas.py @@ -7,7 +7,7 @@ from marshmallow import ValidationError, validates_schema from ereuse_devicehub.marshmallow import NestedOn from ereuse_devicehub.resources.schemas import Thing from ereuse_devicehub.resources.tradedocument import models as m -from ereuse_devicehub.resources.lot import schemas as s_lot +# from ereuse_devicehub.resources.lot import schemas as s_lot class TradeDocument(Thing): @@ -18,7 +18,8 @@ class TradeDocument(Thing): description = SanitizedStr(default='', description=m.TradeDocument.description.comment) file_name = SanitizedStr(default='', description=m.TradeDocument.file_name.comment) file = Raw(type='file') - lot = NestedOn(s_lot.Lot, only_query='id', description=m.TradeDocument.lot.__doc__) + lot = NestedOn('Lot', only_query='id', description=m.TradeDocument.lot.__doc__) + # lot = NestedOn(s_lot.Lot, only_query='id', description=m.TradeDocument.lot.__doc__) @validates_schema