uh, sort being sent as 'null' when there are no sort values

This commit is contained in:
Sanj 2011-09-10 08:39:14 +05:30
parent fcd6063278
commit 2d3b883ec7

View File

@ -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]