mirror of
https://github.com/Southampton-RSG/breccia-mapper.git
synced 2026-11-01 10:33:53 +00:00
4 files changed
+27
-4
No files matched your search
@@ -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