Commit 455eef28 authored by okhin's avatar okhin 🚴

Was missing a parenthesis

parent ca0489ec
Pipeline #873 failed with stage
in 9 minutes and 30 seconds
...@@ -50,6 +50,6 @@ class ActiveConstituencyFilterBackend(BaseFilterBackend): ...@@ -50,6 +50,6 @@ class ActiveConstituencyFilterBackend(BaseFilterBackend):
qs = qs.filter(mandates__in=Mandate.objects.filter( qs = qs.filter(mandates__in=Mandate.objects.filter(
Q(end_date__gte=datetime.today) | Q(end_date__gte=datetime.today) |
Q(end_date__isnull=True)).filter( Q(end_date__isnull=True)).filter(
Q(constituency__name__in=mandates Q(constituency__name__in=mandates)
)).distinct() )).distinct()
return qs return qs
Markdown is supported
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