diff --git a/apps/school/views.py b/apps/school/views.py index 24e2ab61..bac97f5a 100644 --- a/apps/school/views.py +++ b/apps/school/views.py @@ -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