﻿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
15883	Error in tutorial 01 models.py when defining was_published_today()	anonymous	nobody	"http://docs.djangoproject.com/en/dev/intro/tutorial01/

This custom method is exposed as a example:

''import datetime
# ...
class Poll(models.Model):
    # ...
    def was_published_today(self):
        return self.pub_date.date() == datetime.date.today()
''

The return clause of this method should be: return self.pub_date == datetime.date.today()

Regards !

"	Bug	closed	*.djangoproject.com	1.3	Normal	invalid	tutorial, custo method		Unreviewed	0	0	0	0	0	0
