mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Fix for file upload bug
This commit is contained in:
parent
28878b4b0d
commit
44ab487b62
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user