From a55b5f91ad440cd0c35ac45cbe2515e238e9a7c8 Mon Sep 17 00:00:00 2001 From: jordan Date: Tue, 2 Aug 2011 20:19:28 +0000 Subject: [PATCH] ensure the action POST data is retrieved as a string, in some cases dict can be returned and the bulk management won't work git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@1154 0cfe37f9-358a-4d5e-be75-b63607b5c754 --- forum/views/admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/forum/views/admin.py b/forum/views/admin.py index c46bf1e..67047ba 100644 --- a/forum/views/admin.py +++ b/forum/views/admin.py @@ -464,7 +464,7 @@ def node_management(request): 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") -- 2.39.5