remotes/origin/hotfix/LIL-691
gzbender 7 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_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

Loading…
Cancel
Save