Tutorial 2 in the Django documentation now requires third-party software
|Reported by:||Scott Shields||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
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 3 years ago by
|Patch needs improvement:||unset|
|Severity:||Normal → Release blocker|
|Triage Stage:||Unreviewed → Accepted|
|Type:||Uncategorized → Bug|