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

@@ -175,7 +175,10 @@ class PersonAnswerSet(AnswerSet):
project_started_date = models.DateField(blank=False, null=True)
#: Job title this person holds within their organisation
job_title = models.CharField(max_length=255, blank=True, null=False)
job_title = models.CharField(help_text='Contractual job title',
max_length=255,
blank=True,
null=False)
#: Project themes within this person works
themes = models.ManyToManyField(Theme, related_name='people', blank=True)

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,