Skip to content

Releases: martsberger/django-pivot

Keeping up with Django, new features

26 Sep 16:48
d11a917
Compare
Choose a tag to compare

Fixed a problem with column aliases containing whitespace, semicolons, sql comments, and quotes that was introduced by a Django security patch.

Made working with models that have default ordering a little easier, the client no longer has to manually remove the ordering.

Added an optional "Total" column.

Django 4 support

11 Feb 14:28
Compare
Choose a tag to compare

Minor fixes to support Django 4

Bugfix

25 Feb 01:17
Compare
Choose a tag to compare

Fix capitalization of Readme in setup.py

Default values

23 Mar 17:41
Compare
Choose a tag to compare

Added support for default values. You can specify a default value for a columns where no data is found, and you can have rows filled in with all default values by specifying your target rows.

Multi column rows

12 Feb 00:36
Compare
Choose a tag to compare

Add support for multi-level pivot tables. It's now possible to pass a list to the rows parameter to get results where the rows are grouped by more than one column. E.g,

>>> pivot_table = pivot(ShirtSales, ['region', 'gender'], 'shipped', 'units')

To see the sum of units on each shipped date grouped by both region and gender.

Add the ability to change the row keys by passing a function that transforms a string.

Fully supported choice fields

03 Nov 01:57
Compare
Choose a tag to compare

Pivot tables now give you access to the descriptive text defined in choices.

1.4.1

18 Oct 04:01
Compare
Choose a tag to compare
Bump minor version.

1.4

18 Oct 02:13
Compare
Choose a tag to compare
1.4
Move to version 1.4