From e44aba4b555a1de669966ce3f7d5e2c382846e6e Mon Sep 17 00:00:00 2001 From: Michael Hall Date: Wed, 8 Aug 2018 17:03:18 -0400 Subject: [PATCH] Fix city lookup not matching by city name when clicking on the map on the Place selection screens --- events/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/events/views.py b/events/views.py index 36a679a..b6335d5 100644 --- a/events/views.py +++ b/events/views.py @@ -79,7 +79,7 @@ def city_list(request, *args, **kwargs): @api_view(['GET']) def find_city(request): cities = City.objects.all() - if "name" in request.GET: + if "city" in request.GET: cities = cities.filter(name=request.GET.get("city")) if "spr" in request.GET: cities = cities.filter(spr__name=request.GET.get("spr"))