Tutorial 2 in the Django documentation now requires third-party software
|Reported by:||AtomicSpark||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 21 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
comment:2 Changed 21 months ago by Tim Graham <timograham@…>
- Resolution set to fixed
- Status changed from new to closed