Chartjs-How to filter year from datefield in django

0👍

You do it like this for a field called date:

dates = Paymentdete.objects.filter(date__year='2021')

Leave a comment