This seems to be more complicated than I thought. The actual application is an online quiz. An assignment has a number of questions, which each have a text and multiple answer choices which I render as radio buttons. They are presented in random order to the user who checks his/her choice for each. The answers are submitted with the question id as the key in the form to a grading function.
On the grading page, I need to show the question, the answer choices, the correct answer, the chosen answer (which just came from the form POST), and an explanation of the correct answer. I had thought to iterate over the questions in the assignment and then lookup the answer chosen by the user, but I see now that's a little convoluted. My current thought is to create a simple class that includes a question and a chosen answer as attributes, and make a list of those in the grade function to pass to the Context. Is this overkill, about right, or is there an easier way to deal with it? Thanks, Todd --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---

