Hello, I've got a bit of a design issue I'm trying to wrap my head around in order to do things the Django Way.
I'm attempting to creating a simple form that allows a user to take a multiple choice "quiz." Quiz is a model and it has a many to many with Questions which has a m2m with AnswerOptions. I'm also not sure on which is the best way to get the questions and answers to the form and I'm not sure if I should be using one form, or a collection of forms. I guess I'll try and outline the options I have in my mind right now and hope someone can clarify what they would choose. Getting data to the form: A. Pass a Quiz to the form and then drag out the questions and answer options in __init__, and set a ChoiceField for each question with the AnswerOptions as the choices and with the label set to the text of the question B. Pass a dictionary of questions with the question text as the key and the options as the value and then do the parsing in __init__ to set the ChoiceFields C. Something else that makes creating an arbitrary number of ChoiceFields easier Setting up the form: E. Create one form called TakeQuiz that uses one of the options from above to set a bunch of ChoiceField's F. Create a form called AnswerQuestion that only has one ChoiceField and takes a question and a list of choices. Then string those together in the view. G. Something totally different. Any input on what is most inline with the Django way of doing things would be appreciated. --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---