App workarounds.
[wolnelektury.git] / src / club / helpers.py
index b7592fa..4ece5f9 100644 (file)
@@ -5,5 +5,5 @@ from .models import Schedule
 def get_active_schedule(user):
     if not user.is_authenticated:
         return None
 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()