Base column class that contains all shared functionality.
Create a Column.
The most basic column that most people will use.
Extends canary.columns.Column.
Create a Text column.
Unless overridden, the column is sortable and the Search filter is included by default.
Used by filters in order to filter by a Django column name. It is used to build the kwargs passed to QuerySet.filter.
See the filter_queryset methods on included filters to see how this is used.
Resolve all attributes of the column that are defined in Column.resolve.
Render the column value for an object in the QuerySet.
The next most basic Column, this is the base of all columns that should be displayed as HTML elements.
Extends canary.columns.Text.
Create a Tag column.
Renders the filter controls (form, buttons).
A link column. Displays the value as an anchor tag.
Extends canary.columns.Tag.
Create a Link column.
Renders the filter controls (form, buttons).
A link column, where the URL is built using Django’s reverse.
Extends canary.columns.Link.
Create a ReverseLink column.
The reverse_path, reverse_args and reverse_kwargs arguments are the same as you would use when reversing urls with Django’s reverse utility (found in django.core.urlresolvers).
The big difference is that you can provide attributes that will be resolved from the view or QuerySet object in order to provide (for example) the id or slug of the object being displayed.
Renders the filter controls (form, buttons).
A link column, where the URL is built using Django’s reverse for an admin URL.
Extends canary.columns.ReverseLink.
Create an AdminLink column.
The reverse_path, reverse_args and reverse_kwargs arguments are the same as you would use when reversing urls with Django’s reverse utility (found in django.core.urlresolvers), only the class prefixes the path with ‘admin:’ for you, as a convenience.
The big difference is that you can provide attributes that will be resolved from the view or QuerySet object in order to provide (for example) the id or slug of the object being displayed.
Renders the filter controls (form, buttons).
A column that gets its value from a Django models.BooleanField.
Extends canary.columns.Tag.
Create a BooleanValue column.
Overriding to inject the ‘text’ attribute into the dictionary of resolved values.
A column that gets its value from a Django models.DateField.
Extends canary.columns.Text.
Create a Date column.
Unless overridden, the column is sortable and the DateRange filter is included by default.
A column that display an e-mail link.
Extends canary.columns.Link.
Create an EmailLink column.
Overriding to inject the ‘mailto’ and ‘url’ attributes into the dictionary of resolved values.
A header column.
Create a ColumnHeader column.
Render the header column.
Return an approriate canary column for a Django model field.
For example, given a Django models.DateField, this method returns a canary columns.Date object for the field.
This is handy for building a canary report view for a Django model.