Ok, that was a bad idea.

This commit is contained in:
Oliver 2021-06-21 11:30:20 +10:00
parent 908039e1db
commit 04b216253d
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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():