mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Ok, that was a bad idea.
This commit is contained in:
parent
908039e1db
commit
04b216253d
@ -50,7 +50,6 @@ class InvenTreeModelSerializer(serializers.ModelSerializer):
|
||||
|
||||
# Now ensure the underlying model is correct
|
||||
instance = self.Meta.model(**data)
|
||||
instance.validate_unique()
|
||||
instance.clean()
|
||||
|
||||
return data
|
||||
|
@ -380,7 +380,6 @@ class Part(MPTTModel):
|
||||
previous.image.delete(save=False)
|
||||
|
||||
self.clean()
|
||||
self.validate_unique()
|
||||
|
||||
super().save(*args, **kwargs)
|
||||
|
||||
@ -672,6 +671,8 @@ class Part(MPTTModel):
|
||||
|
||||
super().clean()
|
||||
|
||||
self.validate_unique()
|
||||
|
||||
if self.trackable:
|
||||
for part in self.get_used_in().all():
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user