Fix for file upload bug

This commit is contained in:
Oliver 2021-08-25 12:05:41 +10:00
parent 28878b4b0d
commit 44ab487b62

View File

@ -95,9 +95,6 @@ class InvenTreeModelSerializer(serializers.ModelSerializer):
# If instance is None, we are creating a new instance # If instance is None, we are creating a new instance
if instance is None and data is not empty: 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 # Add missing fields which have default values
ModelClass = self.Meta.model ModelClass = self.Meta.model