Error in chaining filters example in documentation
https://docs.djangoproject.com/en/1.11/topics/db/queries/#chaining-filters
(Same error exists in 1.10 and perhaps others)
>>> Entry.objects.filter(
... headline__startswith='What'
... ).exclude(
... pub_date__gte=datetime.date.today()
... ).filter(
... pub_date__gte=datetime(2005, 1, 30)
... )
I believe should contain this instead:
pub_date__gte=datetime.date(2005, 1, 30)
Change History (7)
Owner: |
changed from nobody to Stefan Schneider
|
Status: |
new →
assigned
|
Triage Stage: |
Unreviewed →
Ready for checkin
|
Type: |
Uncategorized →
Bug
|
Resolution: |
→ fixed
|
Status: |
assigned →
closed
|
The example in the docs seems to be incorrect in the master branch too, I have submitted a pull request for the master branch here.