mirror of
https://github.com/inventree/InvenTree.git
synced 2025-08-10 13:51:01 +00:00
Ensure PartParameterTemplate name is unique
This commit is contained in:
@@ -1068,7 +1068,7 @@ class PartParameterTemplate(models.Model):
|
||||
""" Return the number of instances of this Parameter Template """
|
||||
return self.instances.count()
|
||||
|
||||
name = models.CharField(max_length=100, help_text='Parameter Name')
|
||||
name = models.CharField(max_length=100, help_text='Parameter Name', unique=True)
|
||||
|
||||
units = models.CharField(max_length=25, help_text='Parameter Units', blank=True)
|
||||
|
||||
|
Reference in New Issue
Block a user