remotes/origin/hotfix/LIL-691
gzbender 8 years ago
parent e4bcf19ce0
commit 64f98a0e79
  1. 4
      apps/school/views.py

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

Loading…
Cancel
Save