summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2009-04-02 21:49:30 -0500
committerDan McGee <dan@archlinux.org>2009-04-02 21:49:30 -0500
commit6d4ecc5023d7d8d1bcd57e217f4f6041a0fc086e (patch)
tree912662246f52c8a214d348aed65af3d3413aa642
parent38c15509bbfad403154b5046a29e75da9d2153b1 (diff)
Make donor name unique
Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r--main/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/models.py b/main/models.py
index 59de33fe..9bdfbd06 100644
--- a/main/models.py
+++ b/main/models.py
@@ -109,7 +109,7 @@ class AltForum(models.Model):
class Donor(models.Model):
id = models.AutoField(primary_key=True)
- name = models.CharField(max_length=255)
+ name = models.CharField(max_length=255, unique=True)
def __unicode__(self):
return self.name
class Meta: