Permalink
Browse files

Make table.sequence default to ...

  • Loading branch information...
1 parent 98d7d28 commit bcd3bd00817dfaf76ed1e92de99458ef2a1f4780 @selwin committed Apr 27, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 django_tables2/columns.py
  2. +1 −1 django_tables2/tables.py
@@ -670,7 +670,7 @@ def __init__(self, table):
# A list of column names in the correct sequence that they should be
# rendered in the table.
- self.sequence = (self.table.sequence or Sequence(('...', )))
+ self.sequence = self.table.sequence
self.sequence.expand(self.table.base_columns.keys())
#Prepare each column's ``render`` function and its expected argument
@@ -233,7 +233,7 @@ def __init__(self, data, order_by=None, orderable=None, empty_text=None,
template=None, sortable=None):
super(Table, self).__init__()
self.exclude = exclude or ()
- self.sequence = sequence
+ self.sequence = sequence or Sequence(('...', ))
self.data = self.TableDataClass(data=data, table=self)
self.rows = BoundRows(self.data)
self.columns = BoundColumns(self)

0 comments on commit bcd3bd0

Please sign in to comment.