mirror of
https://github.com/Southampton-RSG/breccia-mapper.git
synced 2026-03-03 03:17:07 +00:00
@@ -147,7 +147,7 @@ class PersonAnswerSet(AnswerSet):
|
||||
##################
|
||||
# Static questions
|
||||
|
||||
nationality = CountryField(blank=True, null=True)
|
||||
nationality = CountryField(multiple=True, blank=True)
|
||||
|
||||
country_of_residence = CountryField(blank=True, null=True)
|
||||
|
||||
|
||||
@@ -176,8 +176,11 @@ class AnswerSet(models.Model):
|
||||
try:
|
||||
for question in questions:
|
||||
if question.hardcoded_field:
|
||||
question_answers[question.text] = getattr(
|
||||
self, question.hardcoded_field)
|
||||
answer = getattr(self, question.hardcoded_field)
|
||||
if isinstance(answer, list):
|
||||
answer = ', '.join(map(str, answer))
|
||||
|
||||
question_answers[question.text] = answer
|
||||
|
||||
else:
|
||||
answers = self.question_answers.filter(
|
||||
|
||||
Reference in New Issue
Block a user