question.choice.all is wrong :)
The default reverse relation name is FOO_set where FOO is the lower-
case name of your model.
So in your case, it would be question.choice_set.all
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the G
I am trying to build a simple single page quiz model, with multiple
questions with three classes for quiz,questions and answers, and fourth (not
included) to manage the scores as given below.
class Quiz(models.Model):
name = models.CharField(maxlength=200)
pub_date = models.DateTimeField()
2 matches
Mail list logo