Moved from ext-3.0-rc2 to ext-3.0.0.
[htsworkflow.git] / htsworkflow / frontend / inventory / models.py
index 444d3c5f6c6009f5793e5b2131d6dd1eb0d63cd8..32acf8270f4d77ac74af7b93891c1bd4f6803c89 100644 (file)
@@ -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)