feat: configurable order for static questions

This commit is contained in:
James Graham
2021-03-08 18:20:34 +00:00
parent ba4f8d8ffd
commit 7e9a6e992a
4 changed files with 66 additions and 4 deletions

View File

@@ -46,6 +46,13 @@ class Question(models.Model):
blank=False,
null=False)
#: Is this question hardcoded in an AnswerSet?
is_hardcoded = models.BooleanField(
help_text='Only the order field has any effect for a hardcoded question.',
default=False,
blank=False,
null=False)
#: Should people be able to add their own answers?
allow_free_text = models.BooleanField(default=False,
blank=False,