added default 'order_by' option to tables.
authoradammck <adam.mckaig@gmail.com>
Fri, 16 Apr 2010 03:17:22 +0000 (23:17 -0400)
committerMichael Elsdoerfer <michael@elsdoerfer.com>
Wed, 21 Apr 2010 06:58:52 +0000 (08:58 +0200)
commit5047081c9b1ba9dd9747312f32d26d4aeb537f92
tree54cb7118e3fb5ed77879f5130fd0b218674688a4
parent5ee008025addae18d87f542b4fc25b32dc52ec28
added default 'order_by' option to tables.

this allows tables to specify a default sort order, which includes all
of the UI of an explicitly-sorted dataset.

also, some tests. they fail for BaseTable, because sorting doesn't seem
to be implemented there. it should be, though, despite being crazy.
django_tables/base.py
tests/test_basic.py
tests/test_models.py