mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-11-03 22:55:43 +00:00 
			
		
		
		
	Fix for file upload bug
This commit is contained in:
		@@ -94,9 +94,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