Unverified Commit cf572a45 authored by Thom Wiggers's avatar Thom Wiggers 📐
Browse files

Also exclude boards in active committees

parent 5f24f571
......@@ -25,6 +25,7 @@ class ActiveCommitteeManager(models.Manager):
"""Returns active committees only"""
def get_queryset(self):
return (super().get_queryset()
.exclude(board__is_board=True)
.exclude(until__lt=timezone.now().date()))
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment