reg/models.py
changeset 6 057498d12450
parent 2 c11afa8623f7
child 8 e2699e042129
--- a/reg/models.py	Fri Apr 09 13:21:46 2010 +0530
+++ b/reg/models.py	Fri Apr 09 15:35:40 2010 +0530
@@ -13,8 +13,6 @@
     """ A model to hold extra information about the user.
     """
 
-    key = models.CharField(max_length=10, unique=True)
-
     user = models.ForeignKey(User, unique=True)
     gender = models.CharField(max_length=1, choices=GENDER_CHOICES)
     profession = models.CharField(max_length=1, choices=PROFESSION_CHOICES)
@@ -39,3 +37,7 @@
 
     feedback_open = models.BooleanField()
     quiz_open = models.BooleanField()
+
+    def __unicode__(self):
+
+        return self.title