Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants