refactor: allow admin config of static questions

Text and visibility set in admin panel are now respected everywhere
This commit is contained in:
James Graham
2021-03-19 15:36:09 +00:00
parent 74fffb0cac
commit 81598ea624
15 changed files with 184 additions and 169 deletions

View File

@@ -132,6 +132,8 @@ class Person(models.Model):
class PersonAnswerSet(AnswerSet):
"""The answers to the person questions at a particular point in time."""
question_model = PersonQuestion
#: Person to which this answer set belongs
person = models.ForeignKey(Person,
on_delete=models.CASCADE,