[library-web] New django release adjustments, 2nd part



commit 26cee591d6d77d6bfb264942a470496056387770
Author: Andrea Veri <av gnome org>
Date:   Wed Feb 19 12:36:26 2020 +0000

    New django release adjustments, 2nd part

 web/api.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/web/api.py b/web/api.py
index 32f3450..952d313 100644
--- a/web/api.py
+++ b/web/api.py
@@ -51,7 +51,7 @@ def lookup(request):
 
 def redirect(request):
     try:
-        symbol = request.GET['QUERY_STRING']
+        symbol = request.GET.urlencode().split('=')[1]
     except KeyError:
         return HttpResponseRedirect('/')
     if isinstance(symbol, unicode):


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]