Created
November 1, 2011 21:55
-
-
Save ewencp/1332052 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/sirikata-cdn/content/views.py b/sirikata-cdn/content/views.py | |
| index c4d808d..9479974 100644 | |
| --- a/sirikata-cdn/content/views.py | |
| +++ b/sirikata-cdn/content/views.py | |
| @@ -555,7 +555,7 @@ def search(request): | |
| return render_to_response('content/search.html', view_params, context_instance = RequestContext(request)) | |
| def search_json(request): | |
| - query = request.GET.get('q', '') | |
| + query = request.REQUEST.get('q', '') | |
| results = user_search(query) | |
| view_params = {'results': results} | |
| response = HttpResponse(simplejson.dumps(view_params, default=json_handler), mimetype='application/json') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment