adilmohak / django-lms

A learning management system using django web framework. Course add and drop, grade and assessment result management, online quiz, report generator, student and lecturers management, dashboard, and so much more...
MIT License
568 stars 244 forks source link

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

Open y938 opened 6 months ago

y938 commented 6 months ago

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):

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 commented 6 months ago

Thanks for this detailed issue.

We will look at it