Commit 32f583fb authored by okhin's avatar okhin 🚴
Browse files

Merge branch '186-add-a-query-filter-to-sort-meps-by-active-constituency' into 'master'

Fixing a typo

Closes #186

See merge request !190
parents 6ac7727a cb6d3c7c
Pipeline #896 passed with stages
in 8 minutes and 50 seconds
......@@ -49,7 +49,7 @@ class ActiveConstituencyFilterBackend(BaseFilterBackend):
qs = queryset
if self.query_param in request.GET:
if len(request.GET[self.query_params]):
if len(request.GET[self.query_param]):
mandates = urlunquote(request.GET[self.query_param]).split(',')
qs = qs.filter(mandates__in=Mandate.objects.filter(
Q( |
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