I believe a model similar to the poll app from the tutorial would be appropriate
On Tue, Mar 8, 2016 at 10:20 AM, Jun Tanaka <[email protected]> wrote: > 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 > > > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/b5380222-7afd-4ffc-a3a7-04864161ec38%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/b5380222-7afd-4ffc-a3a7-04864161ec38%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAFWa6tKbMmb3oyfU%3DyPmYi_%3DuXrfx0%2BfwpkT5oAHs2ORKFg7Aw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

