Date_end and prolongation date_start fixed

remotes/origin/hotfix/LIL-691
nikita 7 years ago
parent 150d80e518
commit b406c30889
  1. 2
      apps/school/views.py
  2. 1
      apps/user/views.py

@ -194,7 +194,7 @@ 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) if subscription_ends else None, 'prolong_date_start': subscription_ends if subscription_ends else None,
'allow_prolong': subscription_ends - date_now <= timedelta(days=7) if subscription_ends else False, 'allow_prolong': subscription_ends - date_now <= timedelta(days=7) if subscription_ends else False,
}) })
return context return context

@ -70,7 +70,6 @@ class ProfileView(TemplateView):
).distinct() ).distinct()
school_payment = SchoolPayment.objects.filter( school_payment = SchoolPayment.objects.filter(
user=self.object, user=self.object,
date_start__lte=now(),
date_end__gte=now(), date_end__gte=now(),
status__in=[ status__in=[
Pingback.PINGBACK_TYPE_REGULAR, Pingback.PINGBACK_TYPE_REGULAR,

Loading…
Cancel
Save