Hi,
I am trying to make a form for Quizzes. I hope to know how to construct a model which be added choices. A model should be constructed by three parts as
Question
the number of right answer
several buttons to choose
for example of a model,
class Quiz(models.Model):
question = models.CharField( max_length=40)
image_url = models.URLField(blank=True, null=True)
correct_ans_num = models.IntegerField(default=1,editable=True)
button1 = models.CharField(help_text=u'button1', max_length=20)
button2 = models.CharField(help_text=u'button2', max_length=20)
button3 = models.CharField(help_text=u'buton3', max_length=20)
But a problem here is the number of buttons i fixed. I prefer to add buttons later, and hopefully be able to input data in one admin page.
Please tell me what your best solution of a model should be like.
Jun