Commit 455eef28 authored by okhin's avatar okhin

Was missing a parenthesis

parent ca0489ec
...@@ -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( | Q( |
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