From 9ec54327375525fe7908a433fae170a81ce5cc4f Mon Sep 17 00:00:00 2001 From: eliott Date: Sat, 8 Mar 2008 14:07:06 -0800 Subject: small model change --- main/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main') 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'] -- cgit v1.2.3-24-g4f1b