X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/4b86e623b0ff7a5a53bdb29df06eab039ebe4e1e..084f20588e607aa9ae3ed280b6a2f0349b6a3200:/src/club/helpers.py diff --git a/src/club/helpers.py b/src/club/helpers.py index b7592fadd..4ece5f9ab 100644 --- a/src/club/helpers.py +++ b/src/club/helpers.py @@ -5,5 +5,5 @@ from .models import Schedule def get_active_schedule(user): if not user.is_authenticated: return None - return Schedule.objects.filter(membership__user=user, is_active=True).exclude(expires_at__lt=now()).first() + return Schedule.objects.filter(membership__user=user, expires_at__gt=now()).first()