From 2d3b883ec723ccb3481411bf882ccb8c63926635 Mon Sep 17 00:00:00 2001 From: Sanj Date: Sat, 10 Sep 2011 08:39:14 +0530 Subject: [PATCH] uh, sort being sent as 'null' when there are no sort values --- itf/insidepages/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/itf/insidepages/views.py b/itf/insidepages/views.py index a4849f3..a009b25 100644 --- a/itf/insidepages/views.py +++ b/itf/insidepages/views.py @@ -30,7 +30,7 @@ def get_list(request): tab = get_object_or_404(ModuleTab, pk=tab_id) sortString = request.GET.get("sort", "") - if sortString == "": + if sortString == "" or sortString == 'null': sortArray = [] else: sortOperator = sortString[0]