mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Remove requirement for unique IPN
- Blank IPN values did not count as 'unique'
This commit is contained in:
parent
3fcd5f08e6
commit
77fe0dc542
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user