diff --git a/apps/wpm/serializers.py b/apps/wpm/serializers.py index 7f6847f0..80b514f7 100644 --- a/apps/wpm/serializers.py +++ b/apps/wpm/serializers.py @@ -967,7 +967,7 @@ class HandoverSerializer(CustomModelSerializer): wm:WMaterial = attrs.get('wm', None) handoverb = attrs.get('handoverb', []) - if wm: + if wm and not handoverb: attrs['handoverb'] = [{"wm": wm, "count": attrs["count"] }] handoverb = attrs['handoverb'] attrs['batch'] = wm.batch