From 44ab487b6262aaeb1e0f80b4d1fdc6918d6f03a7 Mon Sep 17 00:00:00 2001 From: Oliver Date: Wed, 25 Aug 2021 12:05:41 +1000 Subject: [PATCH] Fix for file upload bug --- InvenTree/InvenTree/serializers.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/InvenTree/InvenTree/serializers.py b/InvenTree/InvenTree/serializers.py index 4cea0a218c..c6e9464e2b 100644 --- a/InvenTree/InvenTree/serializers.py +++ b/InvenTree/InvenTree/serializers.py @@ -94,9 +94,6 @@ class InvenTreeModelSerializer(serializers.ModelSerializer): # If instance is None, we are creating a new instance if instance is None and data is not empty: - - # Required to side-step immutability of a QueryDict - data = data.copy() # Add missing fields which have default values ModelClass = self.Meta.model