From 4f901089de6edd4d9a218bb50438a22bb24817d1 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 5 Sep 2013 14:33:13 +0200 Subject: Fix python table sort (refs #1301) --- ishtar_common/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ishtar_common') diff --git a/ishtar_common/views.py b/ishtar_common/views.py index 4d746ba62..d1c03ff08 100644 --- a/ishtar_common/views.py +++ b/ishtar_common/views.py @@ -348,7 +348,7 @@ def get_item(model, func_name, default_name, extra_request_keys=[], datas = sorted(datas, key=lambda x:x[idx_col]) if sign == '-': datas = reversed(datas) - datas = datas[start:end] + datas = list(datas)[start:end] link_template = "%s" % \ (unicode(_("Details"))) if data_type == "json": -- cgit v1.2.3