Re: Views.py & queryset

2016-06-02 Thread James Schneider
On Wed, Jun 1, 2016 at 9:44 AM, Franck wrote: > 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=

Views.py & queryset

2016-06-01 Thread Franck
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 query