X-Git-Url: http://woldlab.caltech.edu/gitweb/?a=blobdiff_plain;f=htsworkflow%2Ffrontend%2Finventory%2Fmodels.py;h=32acf8270f4d77ac74af7b93891c1bd4f6803c89;hb=980364bb107bebef6999113be3d256e0270500ba;hp=444d3c5f6c6009f5793e5b2131d6dd1eb0d63cd8;hpb=52aa3ba8c730fc1fa5639529b5308d8b626395ec;p=htsworkflow.git diff --git a/htsworkflow/frontend/inventory/models.py b/htsworkflow/frontend/inventory/models.py index 444d3c5..32acf82 100644 --- a/htsworkflow/frontend/inventory/models.py +++ b/htsworkflow/frontend/inventory/models.py @@ -100,7 +100,7 @@ class Item(models.Model): #Automatically assigned uuid; used for barcode if one is not provided in # barcode_id - uuid = models.CharField(max_length=32, blank=True, help_text="Leave blank for automatic UUID generation") + uuid = models.CharField(max_length=32, blank=True, help_text="Leave blank for automatic UUID generation", unique=True) # field for existing barcodes; used instead of uuid if provided barcode_id = models.CharField(max_length=256, blank=True, null=True)