Skip to content
This repository has been archived by the owner on Dec 5, 2023. It is now read-only.

Commit

Permalink
Fix TypeError in debugging QuestionnaireView
Browse files Browse the repository at this point in the history
  • Loading branch information
vleong2332 committed Jun 9, 2016
1 parent 69c7206 commit d4507b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion td/api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def post(self, request, *args, **kwargs):
logger.warning("ANSWER TEXT: %s", answer_text)
if field_mapping[qid] == "country":
obj.country = Country.objects.get(name__iexact=answer_text)
obj_list.append(obj.country)
obj_list.append(obj.country and obj.country.name)
logger.warning("OBJ.COUNTRY: %s", obj.country)
elif field_mapping[qid] == "direction":
obj.direction = "l" if answer_text.lower() == "yes" else "r"
Expand Down

0 comments on commit d4507b4

Please sign in to comment.