Hi, i'm new in django and python,
I'm trying to create a queryset to filter according to date.
this is my MODEL : data = models.DateTimeField()
and my VIEW: def resultado(request, dia, mes, ano):
lista_de_balada= Balada.objects.filter(data__year=ano, data__month=mes, data__day=dia)
context = {'lista_de_balada':lista_de_balada}
return render(request, 'procurar.htm', context)
it presents no errors, but the query is aways empty... if i take off __month and __day it works fine. but i need to filter according to date not only year.
Sorry for the english, is not my native language.