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