Hello,
Sorry first project...
I can run : Test.objects.filter(dateregister__contains='2016').count() in manage.py shell, result is ok.
In template, {{ test.count }} works well, but I tried {{ test.filter(dateregister__contains='2016').count() }} without success.
I can't use queryset directly in the template ? (need to modify views.py ?)