Opened 14 years ago

Closed 14 years ago

#16191 closed Bug (invalid)

indentation typo in tutorial part 2

Reported by: anonymous Owned by: nobody
Component: Documentation Version: 1.3
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

On https://docs.djangoproject.com/en/1.3/intro/tutorial02/ the last line of the following snippet needs to have a tab?

def was_published_today(self):

return self.pub_date.date() == datetime.date.today()

was_published_today.short_description = 'Published today?'

Change History (1)

comment:1 by Ernesto Rico-Schmidt, 14 years ago

Resolution: invalid
Status: newclosed

The last line attaches the attribute short_description to the was_published_today method. This way it can be used e.g. in the admin interface.

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