Skip to content

Commit cb29cfa

Browse files
committed
Fix autofield data export
1 parent be78a6f commit cb29cfa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

backend/api/v1/v1_data/models.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,8 @@ def to_data_frame(self) -> dict:
291291
pk=self.value).first()
292292
if answer:
293293
answer = answer.administration_column
294+
elif q.type == QuestionTypes.autofield:
295+
answer = self.name
294296
else:
295297
answer = self.value
296298
return {qname: answer}

0 commit comments

Comments
 (0)