Commit Graph

13 Commits

Author SHA1 Message Date
Michael van Tellingen 5792fb93ea Handle retrieving field.verbose_name in a Django 1.8 compat way
If a field is a ManyToOneRel instance then retrieve the verbose_name of
the related field.
2015-04-30 12:36:43 +02:00
Bradley Ayers 8d7626855e Convert to py.test. 2015-04-19 22:29:42 +10:00
Bradley Ayers a8e940afc1 Fix tests and setup.py 2013-08-18 13:59:31 +10:00
Bradley Ayers 329dcfbb81 Remove need for SKIP_HAYSTACK env variable, to help Travis 2013-03-29 21:44:16 +11:00
Bradley Ayers 7113cc701a Various compat changes for Python 3 2013-02-27 10:20:22 +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 9effe9efe8 Add cardinality to the pagination display, resolves #94 2012-09-15 08:53:59 +10:00
Bradley Ayers 175ab533ae Refactor code a little, fix pylint complaints 2012-09-11 10:36:03 +10:00
Bradley Ayers 4f7b2406d4 Fix tests on Python 2.6 2012-06-26 10:36:09 +10:00
Bradley Ayers 910f278b95 Fix bug in TableData order_by for queryset data 2012-03-14 12:07:20 +10:00
Bradley Ayers bde67f87f6 Fix #54 -- SafeData verbose_name are now used unmodified 2012-03-02 08:29:15 +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 57e068600f Upgrade to django-attest v0.2.2, rename tests/testapp to tests/app 2011-11-22 05:56:36 +10:00