martsberger / django-pivot

A module for pivoting Django Querysets
MIT License
209 stars 16 forks source link

Allow default values if no records are found #9

Closed martsberger closed 5 years ago

martsberger commented 5 years ago

This point 2 from issue #5

The default column value is None atm. Why not using 0?

We will add a default value as a keyword argument to the pivot function.

martsberger commented 5 years ago

Fixed with https://github.com/martsberger/django-pivot/commit/fa50940351a363bac437cb5e280d11cc697781bc new release coming soon.

martsberger commented 5 years ago

This is available in the 1.8.0 release.