Commit Graph

34 Commits

Author SHA1 Message Date
Bradley Ayers 5732cefcf3 Fix broken tests. 2015-04-20 03:51:26 +10:00
Bradley Ayers 86056eedeb Add support for computed values. 2014-02-02 20:06:59 +11:00
Bradley Ayers bf0ef5b311 Fix for Python 3.3 2013-03-29 21:13:37 +11:00
Bradley Ayers c9f3b9ac2a Fix tests for Python 2 2013-03-28 20:49:54 +11:00
Bradley Ayers 7e8fad55f0 All tests pass on Python 3.2 2013-03-28 09:20:35 +11:00
Bradley Ayers c739dc53f4 Remove cell_l10n.html 2013-02-28 03:22:44 +10:00
Bradley Ayers b300b7a25a Fix regression for Python 2 2013-02-28 03:22:29 +10:00
Bradley Ayers 7113cc701a Various compat changes for Python 3 2013-02-27 10:20:22 +10:00
Bradley Ayers df94ac6da0 Remove override_settings, use django_attest.settings instead 2013-01-09 20:12:09 +10:00
Sławek Ehlert e456281cdb support for localize in columns
The reason for cell_l10n.html is backwards compatibility with Django 1.2.
This template is included in the default `table.html` template
and this way we avoid errors of not finding the `l10n` tag library
2012-12-03 08:51:20 +01:00
Bradley Ayers 512b91ead4 Fix #102, #101 2012-09-30 12:57:36 +10:00
Bradley Ayers 0741abd31c Satisfy pylint, add Python 3.2 testenv to tox 2012-09-27 09:48:11 +10:00
Bradley Ayers 95f706bf13 When resolving an accessor, *all* exceptions are smothered into None, resolves #98 2012-09-21 12:54:01 +10:00
Bradley Ayers 594664fdec Deprecate Attrs 2012-09-18 15:07:24 +10:00
Bradley Ayers 0df5c4d50f Add support for Django 1.2 (though 1.1 *might* work) 2012-09-18 15:02:15 +10:00
Bradley Ayers 9effe9efe8 Add cardinality to the pagination display, resolves #94 2012-09-15 08:53:59 +10:00
Bradley Ayers 3bd5dac919 Make utils.segment handle prefixed aliases 2012-07-12 10:01:40 +10:00
Bradley Ayers 50361357f7 Add 'segment' function to translate flat ordering to column names 2012-07-05 10:12:05 +10:00
Bradley Ayers 315583bec5 Column defaults are now more sensible, resolves #64 2012-06-24 10:48:41 +10:00
Bradley Ayers 2db92e421b Accessor now honors .alters_data attributes, resolves #83. 2012-06-20 18:02:37 +10:00
Bradley Ayers 4b3330a84e When using model backed table, allow non-field values on the model to be specified in 'fields', resolves #82 2012-06-20 09:42:35 +10:00
Bradley Ayers 7344d83aab Fix pylint violations 2012-05-11 07:27:22 +10:00
Bradley Ayers 2e941c71e5 Polish merge and bump to v0.10.1 2012-03-26 14:24:40 +10:00
Bradley Ayers 44689e5881 Use functions rather than special methods, e.g. type(f) instead of f.__class__ 2012-03-14 11:59:59 +10:00
Bradley Ayers dfae3b229b Add column order by accessors, fixes #20 #48. Thanks thibault, skandocious, alvarovmz
Also renamed `sortable` to `orderable`.
Bump to v0.10.0
2012-03-14 11:45:54 +10:00
Bradley Ayers 258ec59c80 Fix bug in sorted column th attributes, bump to v0.9.6 2012-03-08 17:07:56 +10:00
Bradley Ayers 5ca2d12a00 - `SingleTableView` now uses `RequestConfig`. This fixes issues with ``order_by_field`, `page_field`, and `per_page_field` not being honored.
- Add `Table.Meta.per_page` and change `Table.paginate` to use it as default.
- Add `title` template filter. It differs from Django's built-in `title` filter because it operates on an individual word basis and leaves words containing capitals untouched. **Warning**: use `{% load ... from ... %}` to avoid inadvertantly replacing Django's builtin `title` template filter.
- `BoundColumn.verbose_name` no longer does `capfirst`, titlising is now the responsbility of `Column.header`.
- `BoundColumn.__unicode__` now uses `BoundColumn.header` rather than `BoundColumn.verbose_name`.
2012-02-22 11:02:09 +10:00
Bradley Ayers 382d4fdaac - Add support for column attributes (see Attrs)
- Add BoundRows.items() to yield (bound_column, cell) pairs
- Tried to make docs more concise. Much stronger promotion of using RequestConfig and {% querystring %}
- Bump to v0.9.0
2012-02-21 11:30:03 +10:00
Bradley Ayers 3936e118fd Fixed issue #32, bumped to v0.7.8 2011-09-30 08:57:48 +10:00
Bradley Ayers 7a4bd5ac91 Bumped to v0.7.7
Accessor now handles '' by returning the original object. i.e. Accessor('').resolve(obj) == obj
get_FOO_display() methods are now used if available -- issue #30
Made a couple of very minor code documentation changes.
2011-09-18 14:00:14 +10:00
David Fischer 765cd07ea2 Minor formatting fixes related to #25 2011-08-31 07:31:41 -07:00
David Fischer 099ad8228a Fix for #25 - sorting across types 2011-08-30 21:57:24 -07:00
Bradley Ayers db91c63c8e Fixed issue #22 2011-08-09 09:20:12 +10:00
Bradley Ayers 2008cf0052 renamed to django-tables2 2011-06-09 09:06:34 +10:00