]> git.openstreetmap.org Git - osqa.git/commitdiff
ensure the action POST data is retrieved as a string, in some cases dict can be retur...
authorjordan <jordan@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Tue, 2 Aug 2011 20:19:28 +0000 (20:19 +0000)
committerjordan <jordan@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Tue, 2 Aug 2011 20:19:28 +0000 (20:19 +0000)
git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@1154 0cfe37f9-358a-4d5e-be75-b63607b5c754

forum/views/admin.py

index c46bf1e50223e7f43da9f25b2223bba33847be96..67047ba9c36f301131712b2c7cefc53f1a4e10c8 100644 (file)
@@ -464,7 +464,7 @@ def node_management(request):
             selected_nodes = request.POST.getlist('_selected_node')
 
             if selected_nodes and request.POST.get('action', None):
             selected_nodes = request.POST.getlist('_selected_node')
 
             if selected_nodes and request.POST.get('action', None):
-                action = request.POST['action']
+                action = str(request.POST['action'])
                 selected_nodes = Node.objects.filter(id__in=selected_nodes)
 
                 message = _("No action performed")
                 selected_nodes = Node.objects.filter(id__in=selected_nodes)
 
                 message = _("No action performed")