mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-15 19:45:46 +00:00
Fix for file upload bug
This commit is contained in:
@ -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
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user