Opened 7 years ago

Closed 7 years ago

#3273 closed defect (worksforme)

missing import in, tutorial 2

Reported by: dave.pawson@… Owned by: adrian
Component: contrib.admin Version:
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


Just for good measure, let's also include the was_published_today custom method from Tutorial 1:

list_display = ('question', 'pub_date', 'was_published_today')

This requires
import datetime
in the file

regards DaveP

Attachments (0)

Change History (1)

comment:1 Changed 7 years ago by adrian

  • Resolution set to worksforme
  • Status changed from new to closed

Tutorial 1 says: "Note the addition of import datetime to reference Python's standard datetime module."

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.