Skip to content
Snippets Groups Projects

Resolve "Make exam a many to many field on StudentInfo model"

Compare and Show latest version
2 files
+ 7
1
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -53,7 +53,7 @@ class ExamInfo(models.Model):
if self.student.submissions.all():
return OrderedDict({
s.type.name: s.feedback.score if hasattr(s, 'feedback') else 0
for s in self.student.submissions.order_by('type__name')
for s in self.student.submissions.filter(type__exam_type=self.exam).order_by('type__name')
})
return OrderedDict({
Loading