Posts by Lucas Abreu • 76 points
1 post
-
6
votes3
answers716
viewsA: Django: How to group records using the YEAR from a Fielddate field?
In Django to return grouped data from part of a date (day, month, year, etc.) it is necessary to use the extra. Example: compras.extra(select={'month': "DATE_PART('year',…
djangoanswered Lucas Abreu 76