Skip to content
Snippets Groups Projects
Unverified Commit 8c93a144 authored by Michael Terry's avatar Michael Terry Committed by GitHub
Browse files

Merge pull request #24719 from edx/mikix/is-past-due

Fix possible reference to is_past_due property
parents 652f07a3 023ae077
No related branches found
No related tags found
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