Opened 3 years ago

Closed 3 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


On the last line of the following snippet needs to have a tab?

def was_published_today(self):

return ==

was_published_today.short_description = 'Published today?'

Attachments (0)

Change History (1)

comment:1 Changed 3 years ago by nnrcschmdt

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to invalid
  • Status changed from new to closed

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.

Add Comment

Modify Ticket

Change Properties
<Author field>
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.