Explorar el Código

Fix search regression

Scot Hacker hace 8 años
padre
commit
08efb42c81
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      bakerydemo/search/views.py

+ 1 - 1
bakerydemo/search/views.py

@@ -11,7 +11,7 @@ from bakerydemo.locations.models import LocationPage
 
 def search(request):
     # Search
-    search_query = request.GET.get('query', None)
+    search_query = request.GET.get('q', None)
     if search_query:
         """
         Because we can't use ElasticSearch for the demo, we use the native db search.