Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

'EssayQuestion' object has no attribute 'get_choices' #39

Open
y938 opened this issue Apr 1, 2024 · 1 comment
Open

'EssayQuestion' object has no attribute 'get_choices' #39

y938 opened this issue Apr 1, 2024 · 1 comment

Comments

@y938
Copy link
Contributor

y938 commented Apr 1, 2024

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:

  1. sign in as a student
  2. go to my courses and choose course
  3. click take a quiz
  4. click start essay quiz(created by admin)
  5. after answering the question click check
  6. 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

Capture

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 []
@adilmohak
Copy link
Owner

Thanks for this detailed issue.

We will look at it

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants