summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreliott <eliott@cactuswax.net>2008-03-08 14:07:06 -0800
committereliott <eliott@cactuswax.net>2008-03-08 14:07:06 -0800
commit9ec54327375525fe7908a433fae170a81ce5cc4f (patch)
treea667d63d5e8ce8923c4d4ce05b63f0186973f539
parent5997437edd0eed25fc78e69e1e9e1bf01ff4ec54 (diff)
small model change
-rw-r--r--main/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/models.py b/main/models.py
index 50bb4230..80091756 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']