Skip to content
Snippets Groups Projects
Commit 023ae077 authored by Michael Terry's avatar Michael Terry
Browse files

Fix possible reference to is_past_due property

parent b64c8c22
No related branches found
Tags release-2021-03-25-11.22
No related merge requests found
......@@ -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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment