added columns.sortable() method
[django-tables2.git] / README
diff --git a/README b/README
index 485e87dbe24240cddb8d65d6b25b8f00d5fb519a..4467b37dff245dbe4d889ab41066f2e9733744bd 100644 (file)
--- a/README
+++ b/README
@@ -308,6 +308,20 @@ Note that how the default is used and when it is applied differs between
 static and ModelTables.\r
 \r
 \r
+The table.columns container\r
+---------------------------\r
+\r
+While you can iterate through ``columns`` and get all the currently visible\r
+columns, it further provides features that go beyond a simple iterator.\r
+\r
+You can access all columns, regardless of their visibility, through\r
+``columns.all``.\r
+\r
+``columns.sortable`` is a handy shortcut that exposes all columns which's\r
+``sortable`` attribute is True. This can be very useful in templates, when\r
+doing {% if column.sortable %} can conflict with {{ forloop.last }}.\r
+\r
+\r
 Tables and Pagination\r
 ---------------------\r
 \r