feat: allow multiple choice questions in forms

This commit is contained in:
James Graham
2020-12-07 17:01:53 +00:00
parent e045b084d0
commit 7e8dba4806
3 changed files with 51 additions and 6 deletions

View File

@@ -22,6 +22,11 @@ class Question(models.Model):
#: Text of question
text = models.CharField(max_length=255, blank=False, null=False)
#: Should people be able to select multiple responses to this question?
is_multiple_choice = models.BooleanField(default=False,
blank=False,
null=False)
#: Position of this question in the list
order = models.SmallIntegerField(default=0, blank=False, null=False)