Opened 18 years ago
Closed 18 years ago
#7022 closed (invalid)
trunk tutorial02 needs 'import datetime'
| Reported by: | Owned by: | nobody | |
|---|---|---|---|
| Component: | Documentation | Version: | dev |
| Severity: | 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
In the section of the documentation/tutorial02, at the
Customize the admin change list section, it is necessary to include import datetime otherwise the tutorial doesn't compile.
Note:
See TracTickets
for help on using tickets.
The
datetimemodule was imported whenwas_published_today()was created in the first part of the tutorial. It is assumed that you are following the tutorial sequentially and importing it a second time would confuse a different group of people.