I'm using django 1.5.1 and I guess in in 1.5, the dates method returns
datetime objects. So nevermind!
On Tuesday, October 15, 2013 5:56:01 PM UTC-7, Chad Vernon wrote:
>
> I'm trying to use the dates QuerySet method but I am getting different
> values in the template:
>
> view:
> timecards =
I'm trying to use the dates QuerySet method but I am getting different
values in the template:
view:
timecards = Timecard.objects.all()
dates = Timecard.objects.dates('date', 'day', order='DESC')
template:
{% for tc in timecards %}
{{ tc.date }}
{% endfor %}
Oct. 14, 2013
{% for d in dates
2 matches
Mail list logo