quiz/models.py
changeset 13 ad193c5014b2
parent 12 81cd0140a0f2
child 14 ea7d372bfbff
equal deleted inserted replaced
12:81cd0140a0f2 13:ad193c5014b2
    32     """ A model to hold the proceeding of a quiz.
    32     """ A model to hold the proceeding of a quiz.
    33     """
    33     """
    34 
    34 
    35     user = models.ForeignKey(User)
    35     user = models.ForeignKey(User)
    36     event = models.ForeignKey(Event)
    36     event = models.ForeignKey(Event)
       
    37     user_ip = models.CharField(max_length=15)
    37     
    38     
    38     quiz_num = models.CharField(max_length=2)
    39     quiz_num = models.CharField(max_length=2)
    39     que_remaining = models.CharField(max_length=100)
    40     que_remaining = models.CharField(max_length=100)
    40     que_answered = models.ManyToManyField(Answer)
    41     que_answered = models.ManyToManyField(Answer)