I'm trying to create multiple choice questions with variable numbers
of answers. I have a Question model and an Answer model with a
ForeignKey back to Question.

I'd like to display the question in a form as:

Text : _______
A: _______
B: _______
C: _______
D: _______
E: _______

where each blank represent the text of the question and the text of
each of the possible answers.

If I use formsets, I can't see any way to override the display of the
field name for A-E, so I get

Text: ______
Answer text: _______
Answer text: _______
Answer text: _______
Answer text: _______
Answer text: _______

I know that I can fix this in the template, but that's brittle in the
sense that calling formset.as_p or formset.as_table won't pick up the
behavior.

Is there any way to do this, or am I trying to follow DRY so
religiously that I'm going to end up wandering in the desert instead
of getting something done?

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 django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to