feat: allow updating questions

This commit is contained in:
Jannat Patel
2024-08-07 18:15:50 +05:30
parent afe7df2989
commit ed97640107
5 changed files with 62 additions and 42 deletions

View File

@@ -11,7 +11,6 @@ class LMSQuestion(Document):
def validate(self):
validate_correct_answers(self)
def validate_correct_answers(question):
if question.type == "Choices":
validate_duplicate_options(question)