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/models.py') 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 @@ def get_absolute_url(self): 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-54-g00ecf