diff --git a/apps/school/models.py b/apps/school/models.py index 0f5f6f60..4ca57fe2 100644 --- a/apps/school/models.py +++ b/apps/school/models.py @@ -46,19 +46,6 @@ class SchoolSchedule(models.Model): def is_online(self): return now().isoweekday() == self.weekday and now().time() >= self.start_at - def is_purchased(self): - date_now = now().date() - try: - school_payment = payment_models.SchoolPayment.objects.get( - weekdays__contains=[self.weekday], - date_start__lte=date_now, - date_end__gte=date_now, - ) - except payment_models.SchoolPayment.DoesNotExist: - return False - else: - return school_payment.is_deliverable() - def current_live_lesson(self): now_time = now() live_lesson = LiveLesson.objects.filter( diff --git a/apps/school/templates/blocks/_schedule_purchased_item.html b/apps/school/templates/blocks/_schedule_purchased_item.html index 84422eb2..62a3b274 100644 --- a/apps/school/templates/blocks/_schedule_purchased_item.html +++ b/apps/school/templates/blocks/_schedule_purchased_item.html @@ -1,5 +1,5 @@ {% load static %} {% load thumbnail %} -