Re: Foreign Key chaining in templates

2007-08-21 Thread Collin Grady
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

Foreign Key chaining in templates

2007-08-21 Thread Keith Mallory
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()