feat: alternate filter text and hide private

Resolves #53
Resolves #82
This commit is contained in:
James Graham
2021-03-01 19:01:57 +00:00
parent b73e2dcb2d
commit db76d57971
4 changed files with 62 additions and 12 deletions

View File

@@ -24,9 +24,23 @@ class Question(models.Model):
blank=False,
null=False)
#: Text of question
#: Text of question - 1st person
text = models.CharField(max_length=255, blank=False, null=False)
#: Text to be displayed in network filters - 3rd person
filter_text = models.CharField(
max_length=255,
blank=True,
null=False,
help_text='Text to be displayed in network filters - 3rd person')
#: Should answers to this question be considered public?
answer_is_public = models.BooleanField(
help_text='Should answers to this question be considered public?',
default=True,
blank=False,
null=False)
#: Should people be able to select multiple responses to this question?
is_multiple_choice = models.BooleanField(default=False,
blank=False,