Sortability of a column with a callable "data" option is inconsistent

Bug #282964 reported by Michael Elsdörfer on 2008-10-14
Affects Status Importance Assigned to Milestone
Michael Elsdörfer

Bug Description

ModelTables only.

If a column's "data" argument is a callable object, that column will remain sortable as long as it's name still refers to a valid Django ORM field.

If however the column's "data" argument is a string that points to a callable method on the model instance (or related instances), the column will never be sortable, regardless of whether a valid ORM field is still behind it or not.

The behaviour should be the same in both cases, or the difference clearly documented. It seems most sensible to change the latter case to match the former. The relevant code that needs adjusting is in

Michael Elsdörfer (miracle2k) wrote :
Changed in django-tables:
assignee: nobody → miracle2k
status: New → Confirmed
Michael Elsdörfer (miracle2k) wrote :

Fixed in r43.

Changed in django-tables:
status: Confirmed → Fix Committed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers