|
|
|
|
@ -198,7 +198,7 @@ class SchoolView(TemplateView): |
|
|
|
|
'school_schedules': school_schedules, |
|
|
|
|
'school_schedules_purchased': school_schedules_purchased, |
|
|
|
|
'school_purchased_future': school_purchased_future, |
|
|
|
|
'subscription_ends': subscription_ends if not school_purchased_future else None, |
|
|
|
|
'subscription_ends': subscription_ends, |
|
|
|
|
'prolong_date_start': subscription_ends + timedelta(days=1) if subscription_ends else None, |
|
|
|
|
'allow_prolong': subscription_ends - date_now <= timedelta(days=7) |
|
|
|
|
if not school_purchased_future and subscription_ends else False, |
|
|
|
|
|