Skip to content

Commit e6a05b6

Browse files
fixbug get_choices_content
1 parent ec6c891 commit e6a05b6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

classroom/models/abstracts/question.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ def get_answers_content(self):
6060
return answers
6161

6262
def get_choices_content(self):
63+
if not self.choices:
64+
return []
6365
return self.choices.split(self._DELEMITER)
6466

6567
@classmethod

0 commit comments

Comments
 (0)