From a37b64e9bfeb654062c54b748306d87bf1303fe5 Mon Sep 17 00:00:00 2001 From: daddz Date: Thu, 19 Nov 2015 18:51:17 +0100 Subject: [PATCH] Django19 support --- table/tables.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/table/tables.py b/table/tables.py index 3ef4b8d..e1b2808 100644 --- a/table/tables.py +++ b/table/tables.py @@ -6,7 +6,7 @@ from uuid import uuid4 from django.db.models.query import QuerySet from django.utils.safestring import mark_safe -from django.utils.datastructures import SortedDict +from collections import OrderedDict from .columns import Column, BoundColumn, SequenceColumn from .widgets import SearchBox, InfoLabel, Pagination, LengthMenu, ExtButton @@ -28,7 +28,7 @@ def rows(self): # Binding object to each column of each row, so that # data structure for each row is organized like this: # { boundcol0: td, boundcol1: td, boundcol2: td } - row = SortedDict() + row = OrderedDict() columns = [BoundColumn(obj, col) for col in self.columns if col.space] for col in columns: row[col] = col.html