fixed for production - add get_history

EDUCATOR-4696 - put back get_history and update UI

add pylint
This commit is contained in:
atesker
2019-09-26 11:05:13 -04:00
parent b3845b2b96
commit 6c6a0e47af
3 changed files with 7 additions and 2 deletions

View File

@@ -198,7 +198,7 @@ username = get_enterprise_learner_generic_name(request) or student.username
<p class="override-notice">
%if section.override is not None:
<%last_override_history = section.override.get_history().order_by('created').last()%>
%if (not last_override_history or last_override_history.feature == grades_constants.GradeOverrideFeatureEnum.proctoring) and section.format == "Exam" and earned == 0:
%if (not last_override_history or last_override_history.system == grades_constants.GradeOverrideFeatureEnum.proctoring) and section.format == "Exam" and earned == 0:
${_("Suspicious activity detected during proctored exam review. Exam score 0.")}
%else:
${_("Section grade has been overridden.")}