Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#9137 closed (invalid)

Tutorial 1 has a small mistake

Reported by: hvdklauw@… Owned by: nobody
Component: Documentation Version: 1.0
Severity: Keywords: Tutorial
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


def was_published_today(self):

return ==

That doesn't seem to work for me,

def was_published_today(self):

return self.pub_date ==


Change History (3)

comment:1 Changed 10 years ago by Collin Grady

Resolution: invalid
Status: newclosed

If you incorrectly made the field a DateField instead of a DateTimeField, your version would work, but the tutorial shows a DateTimeField, so the .date() is required

comment:2 Changed 10 years ago by Harro <hvdklauw@…>

Wow.. you're right.. that was a big mistake on my part.

comment:3 Changed 10 years ago by (none)

milestone: post-1.0

Milestone post-1.0 deleted

Note: See TracTickets for help on using tickets.
Back to Top