quiz/models.py
changeset 28 456b7b9e3d13
parent 23 f57c30096b51
child 39 0fa055b8ea98
equal deleted inserted replaced
27:6233cf13fc12 28:456b7b9e3d13
     2 from django.contrib.auth.models import User
     2 from django.contrib.auth.models import User
     3 
     3 
     4 from offline.event.models import Event
     4 from offline.event.models import Event
     5 
     5 
     6 class Profile(models.Model):
     6 class Profile(models.Model):
       
     7     """ A profile for quiz takers.
       
     8     """
     7 
     9 
     8     user = models.ForeignKey(User)
    10     user = models.ForeignKey(User)
     9     profession = models.CharField(max_length=20,help_text="(Ex: Faculty, Student etc.)")
    11     profession = models.CharField(max_length=20,help_text="(Ex: Faculty, Student etc.)")
    10     affiliated_to = models.CharField(max_length=100, verbose_name="College/Company")
    12     affiliated_to = models.CharField(max_length=100, verbose_name="College/Company")
    11 
    13