django-lms
django-lms copied to clipboard
'EssayQuestion' object has no attribute 'get_choices'
Describe the bug after taking essay quiz when i hit check button 'EssayQuestion' object has no attribute 'get_choices' error raise
To Reproduce Steps to reproduce the behavior:
- sign in as a student
- go to my courses and choose course
- click take a quiz
- click start essay quiz(created by admin)
- after answering the question click check
- error('EssayQuestion' object has no attribute 'get_choices')
Expected behavior check your answer and show your score
Desktop (please complete the following information):
- OS: window
- Browser : chrome
Additional context Adding the following code in quiz/model/EssayQuestion remove the error. but i don't think it's the right way
def get_choices(self):
# Returning an empty list to signify no choices for essay questions
return []
Thanks for this detailed issue.
We will look at it