|
|
|
@ -223,7 +223,8 @@ class SummerSchoolView(TemplateView): |
|
|
|
school_schedules_purchased = [] |
|
|
|
school_schedules_purchased = [] |
|
|
|
if school_payment_exists and is_previous: |
|
|
|
if school_payment_exists and is_previous: |
|
|
|
live_lessons = LiveLesson.objects.filter( |
|
|
|
live_lessons = LiveLesson.objects.filter( |
|
|
|
date__lt=(now_time - timedelta(days=1)).date(), |
|
|
|
date__gte=school_payment.last().date_start, |
|
|
|
|
|
|
|
date__range=[(now_time - timedelta(days=8)).date(), (now_time - timedelta(days=1)).date()], |
|
|
|
deactivated_at__isnull=True, |
|
|
|
deactivated_at__isnull=True, |
|
|
|
) |
|
|
|
) |
|
|
|
live_lessons_exists = live_lessons.exists() |
|
|
|
live_lessons_exists = live_lessons.exists() |
|
|
|
|