Skip to content

Commit

Permalink
Fix autofield data export
Browse files Browse the repository at this point in the history
  • Loading branch information
dedenbangkit committed Feb 20, 2024
1 parent be78a6f commit cb29cfa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backend/api/v1/v1_data/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,8 @@ def to_data_frame(self) -> dict:
pk=self.value).first()
if answer:
answer = answer.administration_column
elif q.type == QuestionTypes.autofield:
answer = self.name
else:
answer = self.value
return {qname: answer}
Expand Down

0 comments on commit cb29cfa

Please sign in to comment.