X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/4b86e623b0ff7a5a53bdb29df06eab039ebe4e1e..a169ba7caa0d9d83fddcbad5ed05f536e0ca1b9e:/src/club/helpers.py?ds=inline 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()