Releases: martsberger/django-pivot
Keeping up with Django, new features
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
Minor fixes to support Django 4
Bugfix
Fix capitalization of Readme in setup.py
Default values
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
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
Pivot tables now give you access to the descriptive text defined in choices.
1.4.1
Bump minor version.
1.4
Move to version 1.4