#28648: Error in chaining filters example in documentation
-----------------------------------------+------------------------
Reporter: Dave Jagoda | Owner: nobody
Type: Uncategorized | Status: new
Component: Documentation | Version: 1.11
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 1
UI/UX: 0 |
-----------------------------------------+------------------------
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)
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/28648>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/053.81206adc5b8c5dcb144e8c50d0a0519a%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.