Skip to content
Snippets Groups Projects
Unverified Commit a04e189d authored by Luke Murphy's avatar Luke Murphy
Browse files

Add a feedback type field.

parent fd5d326d
No related branches found
No related tags found
No related merge requests found
......@@ -18,6 +18,12 @@ class DataLayerModel(models.Model):
class Message(DataLayerModel):
FEEDBACK_TYPE_CHOICES = (
('CONCERN', 'Concern'),
('QUESTION', 'Question'),
('RUMOUR', 'Rumour'),
)
# FIXME(lukem): We're thinking that this can be named 'source' or
# `original` or something like that since it more closely resembles our
# current thinking and since we're adding the new `translation` field,
......@@ -33,6 +39,11 @@ class Message(DataLayerModel):
age = models.CharField(max_length=100, blank=True)
ennumerator = models.CharField(max_length=200, blank=True)
source = models.CharField(max_length=200, blank=True)
feedback_type = models.CharField(
max_length=100,
choices=FEEDBACK_TYPE_CHOICES,
blank=True,
)
def apply_terms(self, terms):
""" Add or replace values of term.taxonomy for current Item
......
......@@ -19,3 +19,8 @@ class ItemFactory(DjangoModelFactory):
timestamp = fuzzy.FuzzyDateTime(
timezone.now() + timedelta(days=-365)
)
feedback_type = fuzzy.FuzzyChoice([
'Concern',
'Question',
'Rumour',
])
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment