Skip to content

Commit

Permalink
Make multi choice questionnarie answers render
Browse files Browse the repository at this point in the history
  • Loading branch information
Maffooch authored Mar 9, 2023
1 parent 8a20111 commit f16f5d1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions dojo/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -3037,8 +3037,7 @@ def __init__(self, *args, **kwargs):
# we have ChoiceAnswer instance
if choice_answer:
choice_answer = choice_answer[0]
initial_choices = choice_answer.answer.all().values_list('id',
flat=True)
initial_choices = list(choice_answer.answer.all().values_list('id', flat=True))
if self.question.multichoice is False:
initial_choices = initial_choices[0]

Expand Down

0 comments on commit f16f5d1

Please sign in to comment.