From cb6d3c7c2c49bff3cc602bd52460ff320275f656 Mon Sep 17 00:00:00 2001 From: okhin Date: Mon, 27 Feb 2017 16:01:01 +0100 Subject: [PATCH] Fixing a typo --- src/representatives/filters.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/representatives/filters.py b/src/representatives/filters.py index 41abc89..8a856dd 100644 --- a/src/representatives/filters.py +++ b/src/representatives/filters.py @@ -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(end_date__gte=datetime.today) | -- GitLab