diff --git a/kolibri/core/exams/serializers.py b/kolibri/core/exams/serializers.py index d5e563293d8..ffad7390133 100644 --- a/kolibri/core/exams/serializers.py +++ b/kolibri/core/exams/serializers.py @@ -137,7 +137,7 @@ def to_internal_value(self, data): else: # Otherwise we are just updating the exam, so allow a partial update self.partial = True - + question_sources = data.get("question_sources", []) data["question_count"] = sum( len(source.get("questions", [])) for source in question_sources