Opened 20 months ago

Closed 20 months ago

Last modified 20 months ago

#20891 closed Bug (fixed)

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

Reported by: AtomicSpark 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 Changed 20 months ago by timo

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Severity changed from Normal to Release blocker
  • Triage Stage changed from Unreviewed to Accepted
  • Type changed from Uncategorized to Bug

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

comment:2 Changed 20 months ago by Tim Graham <timograham@…>

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

In 55339a76691724109770092976e660ac62358bc5:

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

Thanks AtomicSpark for the report.

comment:3 Changed 20 months ago by Tim Graham <timograham@…>

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