Skip to content

Commit cd51609

Browse files
committed
Merge pull request #29 from daddz/django19
Django19 support
2 parents 24049a0 + a37b64e commit cd51609

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

table/tables.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from uuid import uuid4
77
from django.db.models.query import QuerySet
88
from django.utils.safestring import mark_safe
9-
from django.utils.datastructures import SortedDict
9+
from collections import OrderedDict
1010
from .columns import Column, BoundColumn, SequenceColumn
1111
from .widgets import SearchBox, InfoLabel, Pagination, LengthMenu, ExtButton
1212

@@ -28,7 +28,7 @@ def rows(self):
2828
# Binding object to each column of each row, so that
2929
# data structure for each row is organized like this:
3030
# { boundcol0: td, boundcol1: td, boundcol2: td }
31-
row = SortedDict()
31+
row = OrderedDict()
3232
columns = [BoundColumn(obj, col) for col in self.columns if col.space]
3333
for col in columns:
3434
row[col] = col.html

0 commit comments

Comments
 (0)