﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
14052	Error on a code in Tutorial 01	Wagner Macedo	nobody	"I'm learning Python and Django, and in tutorial 01, on url [http://docs.djangoproject.com/en/dev/intro/tutorial01/#intro-tutorial01], I think the code that's adding a custom method in the Poll class is wrong. Where is written:
{{{
import datetime
# ...
class Poll(models.Model):
    # ...
    def was_published_today(self):
        return self.pub_date.date() == datetime.date.today()
}}}

should be:
{{{
#!python
import datetime
# ...
class Poll(models.Model):
    # ...
    def was_published_today(self):
        return self.pub_date.date() == datetime.today().date()
}}}

The error is in the order today date invocation.

Sorry for my poor english, I'm brazillian."		closed	Documentation	1.2		invalid			Unreviewed	0	0	0	0	0	0
