Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#20891 closed Bug (fixed)

Tutorial 2 in the Django documentation now requires third-party software

Reported by: Scott Shields Owned by: nobody
Component: Documentation Version: 1.6-beta-1
Severity: Release blocker Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Near the bottom of the Django tutorial part 2, Customize the admin change list, the tutorial instructs you to add the following code to add a "hierarchical navigation, by date, to the top of the change list page":

date_hierarchy = 'pub_date'

As of Django 1.6, this feature seems to use the new QuerySet.datetimes() method which, because we're using SQLite, requires pytz to be installed. I originally was going to copy and paste the note from the QuerySet.datetimes() section and attach a patch, but since this now requires third-party software, I believe this feature is out of the scope of the tutorial and should just be removed entirely.

I did not attach a patch due to wanting some feedback on the subject.

Change History (3)

comment:1 by Tim Graham, 11 years ago

Severity: NormalRelease blocker
Triage Stage: UnreviewedAccepted
Type: UncategorizedBug

If this is the only part of the tutorial that requires pytz, I'm fine with removing this step.

comment:2 by Tim Graham <timograham@…>, 11 years ago

Resolution: fixed
Status: newclosed

In 55339a76691724109770092976e660ac62358bc5:

Fixed #20891 -- Removed part of the tutorial that requires pytz

Thanks AtomicSpark for the report.

comment:3 by Tim Graham <timograham@…>, 11 years ago

In 7825fb878873bfab6762ce001b0446f3ebfb25ea:

[1.6.x] Fixed #20891 -- Removed part of the tutorial that requires pytz

Thanks AtomicSpark for the report.

Backport of 55339a7669 from master

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