Remove requirement for unique IPN

- Blank IPN values did not count as 'unique'
This commit is contained in:
Oliver 2018-04-12 19:14:07 +10:00
parent 3fcd5f08e6
commit 77fe0dc542

View File

@ -60,8 +60,7 @@ class Part(models.Model):
class Meta:
verbose_name = "Part"
verbose_name_plural = "Parts"
unique_together = (("name", "category"),
("IPN", "category"))
unique_together = (("name", "category"),)
@property
def stock(self):