Hi Orchid, I am the author of the quiz app that has been recently updated - check it out: https://github.com/tomwalker/django_quiz
It should be a lot easier for you to work with now. Why dont you add it on as a feature request and I will try to get it added soon. If you have a solution already, I would be interested to see what you came up with. All the best, Tom On Monday, 10 March 2014 06:04:35 UTC, orchid barua wrote: > > I want to modify the django-quiz application. > https://github.com/tomwalker/django_quiz > > The quesiton will be a multiple true false type. Each question will have 5 > stem, each will be tested for true/false. Each will carry partial marks eg. > 1 will be awarded for a correct ans. And there will be a system for penalty > eg. deduct 0.5 marks for a wrong answer of a stem. > > I am modifying the model like this: > > *Question model:* > class Question(models.Model): > > quiz = models.ManyToManyField(Quiz, blank=True, ) > > category = models.ForeignKey(Category, blank=True, null=True, ) > > content = models.CharField(max_length=1000, > blank=False, > help_text="Enter the question text that you > want displayed", > verbose_name='Question', > ) > > explanation = models.TextField(max_length=2000, > blank=True, > help_text="Explanation to be shown > after the question has been answered.", > verbose_name='Explanation', > ) > > > class Answer(models.Model): > question = models.ForeignKey(Question) > > content = models.CharField(max_length=1000, > blank=False, > help_text="Enter the answer text that you > want displayed", > ) > > correct = models.BooleanField(blank=False, > default=False, > help_text="Is this a correct answer?" > ) > incorrect = models.BooleanField(blank = False, default =False, > help_text = "is this incorrect ?") > > The original quiz model is here: > https://github.com/tomwalker/django_quiz/blob/master/quiz/models.py > > How can I modify the view and models to achieve my functionality? Can you > please atleast suggest an algorithm for the process? > -- 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 http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/5674d19d-ffe3-4c27-b974-f2b6b7a38fec%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

