diff -r 18dc0362f550 -r c11afa8623f7 reg/models.py --- a/reg/models.py Thu Apr 08 16:35:46 2010 +0530 +++ b/reg/models.py Thu Apr 08 22:28:15 2010 +0530 @@ -13,6 +13,8 @@ """ 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) @@ -20,14 +22,18 @@ interests = models.CharField(max_length=100, verbose_name="Fields of Interest", help_text="Ex: Python, Image Processing, Bio Informatics etc.") + activation_key = models.CharField(max_length=30, unique=True) + class Event(models.Model): """ A model for the workshop information. """ + key = models.CharField(max_length=10, unique=True) + title = models.CharField(max_length=100) description = models.TextField() start_date = models.DateField() - end_date = models.DateField() + stop_date = models.DateField() attendees = models.ManyToManyField(User, related_name="%(class)s_attendees") organizers = models.ManyToManyField(User, related_name="%(class)s_organizers")