summaryrefslogtreecommitdiff
path: root/releng/models.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2013-01-19 17:19:27 -0600
committerDan McGee <dan@archlinux.org>2013-01-19 17:19:27 -0600
commit4d52242f4b5a20a591b5bd44cc0dc12f15a9c92c (patch)
tree3651a28872c6860923d66fc43291e6d2825ba36d /releng/models.py
parent71c0c7453a5bc28b6e6576fe4f1351139f33ade5 (diff)
Mark release version string as unique
It should be unique anyway, but it is especially important now that we are using it in URL patterns for lookup. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'releng/models.py')
-rw-r--r--releng/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/releng/models.py b/releng/models.py
index c7d26966..a0dd57aa 100644
--- a/releng/models.py
+++ b/releng/models.py
@@ -116,7 +116,7 @@ class Test(models.Model):
class Release(models.Model):
release_date = models.DateField(db_index=True)
- version = models.CharField(max_length=50)
+ version = models.CharField(max_length=50, unique=True)
kernel_version = models.CharField(max_length=50, blank=True)
torrent_infohash = models.CharField(max_length=64, blank=True)
file_size = PositiveBigIntegerField(null=True, blank=True)