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