From 6546332fe5264ad3d4594adcac3c477da8a0130a Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Mon, 7 Jun 2021 16:04:33 +0200 Subject: [PATCH] swap @s for _s in code --- ereuse_devicehub/resources/action/schemas.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ereuse_devicehub/resources/action/schemas.py b/ereuse_devicehub/resources/action/schemas.py index dbbc0035..8922f52c 100644 --- a/ereuse_devicehub/resources/action/schemas.py +++ b/ereuse_devicehub/resources/action/schemas.py @@ -596,6 +596,8 @@ class Trade(ActionWithMultipleDevices): txt = "you need a code to be able to do the traceability" raise ValidationError(txt) + data['code'] = data['code'].replace('@', '_') + class InitTransfer(Trade): __doc__ = m.InitTransfer.__doc__