From 64f98a0e791e6345297bebad32be5c0d7ad7f506 Mon Sep 17 00:00:00 2001 From: gzbender Date: Sat, 22 Sep 2018 00:07:17 +0500 Subject: [PATCH] LIL-645 --- apps/school/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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