summaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authoreliott <eliott@cactuswax.net>2008-03-08 23:07:06 +0100
committereliott <eliott@cactuswax.net>2008-03-08 23:07:06 +0100
commit9ec54327375525fe7908a433fae170a81ce5cc4f (patch)
treea667d63d5e8ce8923c4d4ce05b63f0186973f539 /main
parent5997437edd0eed25fc78e69e1e9e1bf01ff4ec54 (diff)
downloadarchweb-9ec54327375525fe7908a433fae170a81ce5cc4f.tar.gz
archweb-9ec54327375525fe7908a433fae170a81ce5cc4f.tar.xz
small model change
Diffstat (limited to 'main')
-rw-r--r--main/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/models.py b/main/models.py
index 50bb423..8009175 100644
--- a/main/models.py
+++ b/main/models.py
@@ -135,7 +135,7 @@ class News(models.Model):
class Arch(models.Model):
id = models.AutoField(primary_key=True)
- name = models.CharField(maxlength=255)
+ name = models.CharField(unique=True,maxlength=255)
class Meta:
db_table = 'archs'
ordering = ['name']