diff --git a/core/signals.py b/core/signals.py index fc561bbd838e567132d526f6f3883ae1fb78993b..b857cb0b491b69ae9576cdd9799cd167918c8d1d 100644 --- a/core/signals.py +++ b/core/signals.py @@ -60,22 +60,7 @@ def update_student_score(sender, instance, **kwargs): for exam_info in student.exams.all(): exam_info.update_total_score() log.debug('SIGNAL -- Scores of student %s were updated)', student) -======= - student.exams[0].update_total_score() - log.debug('SIGNAL -- Score of student %s was updated %s)', - student, - student.total_score) ->>>>>>> added new many-to-many field and wrapper class -======= - for exam_info in student.exams.all(): - exam_info.update_total_score() - log.debug('SIGNAL -- Scores of student %s were updated)', student) ->>>>>>> exams now manytomany field, problems resolved - for exam_info in student.exams.all(): - exam_info.update_total_score() - log.debug('SIGNAL -- Scores of student %s were updated)', student) - @receiver(pre_save, sender=FeedbackComment) def set_comment_visibility_after_conflict(sender, instance, **kwargs):