|
|
|
|
@ -201,8 +201,8 @@ class SchoolView(TemplateView): |
|
|
|
|
'school_schedules_purchased': school_schedules_purchased, |
|
|
|
|
'school_purchased_future': False, |
|
|
|
|
'subscription_ends': subscription_ends, |
|
|
|
|
'prolong_date_start': subscription_ends + timedelta(days=1), |
|
|
|
|
'allow_prolong': subscription_ends - date_now <= timedelta(days=14) |
|
|
|
|
'prolong_date_start': subscription_ends + timedelta(days=1) if subscription_ends else None, |
|
|
|
|
'allow_prolong': subscription_ends - date_now <= timedelta(days=14) if subscription_ends else False, |
|
|
|
|
}) |
|
|
|
|
return context |
|
|
|
|
|
|
|
|
|
|