Fix possible reference to is_past_due property

This commit is contained in:
Michael Terry
2020-08-06 16:54:45 -04:00
parent b64c8c2283
commit 023ae07753

View File

@@ -58,7 +58,9 @@ class PersonalizedLearnerScheduleCallToAction:
else:
can_attempt = True
return xblock.self_paced and can_attempt and xblock.is_past_due()
is_past_due = xblock.is_past_due() if callable(xblock.is_past_due) else xblock.is_past_due
return xblock.self_paced and can_attempt and is_past_due
@staticmethod
def _make_reset_deadlines_cta(xblock):