Answer the question
In order to leave comments, you need to log in
How to determine that you need to display objects on the template in the form of chekox, radio, text?
models.py:
class Question(models.Model):
section = models.ForeignKey(Section)
question_text = models.CharField(verbose_name='Описание вопроса')
class Answer(models.Model):
question = models.ForeignKey(Question)
answer_text = models.CharField(verbose_name='Ответ', max_length=100)
true = models.BooleanField(verbose_name='true/false')
points=models.FloatField(verbose_name='Баллы')
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question