bradleyayers/django-tables2 — Issue #33: Sorting doesn't work if TEMPLATE_STRING_IF_INVALID is set
Author: albrnick
Created: 2011-10-14 19:50:56+00:00
State: open

The logic for setting the order_by field in render_table:

{{ column.header }}

Doesn't work if the django setting TEMPLATE_STRING_IF_INVALID is set. As the "|default:column.name" portion is ignored, since ob.opposite evaluates to the TEMPLATE_STRING_IF_INVALID text. So the query string will show '?sort=' always.

Using django version 1.3.1