mirror of
https://github.com/Southampton-RSG/breccia-mapper.git
synced 2026-03-03 11:27:09 +00:00
feat: add negative response flag to question models
This commit is contained in:
@@ -114,6 +114,9 @@ class QuestionChoice(models.Model):
|
||||
#: Position of this answer in the list
|
||||
order = models.SmallIntegerField(default=0, blank=False, null=False)
|
||||
|
||||
#: Does this answer represent the negative response?
|
||||
is_negative_response = models.BooleanField(default=False)
|
||||
|
||||
@property
|
||||
def slug(self) -> str:
|
||||
return slugify(self.text)
|
||||
|
||||
Reference in New Issue
Block a user