mirror of
https://github.com/Southampton-RSG/breccia-mapper.git
synced 2026-03-03 11:27:09 +00:00
@@ -4,6 +4,11 @@ import typing
|
||||
from django.db import models
|
||||
from django.utils.text import slugify
|
||||
|
||||
__all__ = [
|
||||
'Question',
|
||||
'QuestionChoice',
|
||||
]
|
||||
|
||||
|
||||
class Question(models.Model):
|
||||
"""Questions from which a survey form can be created."""
|
||||
@@ -27,6 +32,11 @@ class Question(models.Model):
|
||||
blank=False,
|
||||
null=False)
|
||||
|
||||
#: Should people be able to add their own answers?
|
||||
allow_free_text = models.BooleanField(default=False,
|
||||
blank=False,
|
||||
null=False)
|
||||
|
||||
#: Position of this question in the list
|
||||
order = models.SmallIntegerField(default=0, blank=False, null=False)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user