[Django] #21884: field lookup docs don't say exact is default behavior

2 views
Skip to first unread message

Django

unread,
Jan 27, 2014, 5:41:43 PM1/27/14
to django-...@googlegroups.com
#21884: field lookup docs don't say exact is default behavior
--------------------------------------+--------------------
Reporter: cjerdonek | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Documentation | Version: 1.6
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------+--------------------
The [https://docs.djangoproject.com/en/dev/ref/models/querysets/#field-
lookups Field lookups] documentation doesn't mention that `exact` is the
default behavior. You have to go to a different
[https://docs.djangoproject.com/en/dev/topics/db/queries/#field-lookups
introduction page] to get this information, which isn't intuitive.

The reference page should include at least as much as the intro. Indeed,
the intro says, "The database API supports about two dozen lookup types; a
complete reference can be found in the field lookup reference."

--
Ticket URL: <https://code.djangoproject.com/ticket/21884>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Jan 27, 2014, 5:42:05 PM1/27/14
to django-...@googlegroups.com
#21884: field lookup docs don't say exact is default behavior
-------------------------------------+-------------------------------------
Reporter: cjerdonek | Owner: nobody
Type: | Status: new
Cleanup/optimization | Version: 1.6
Component: Documentation | Resolution:
Severity: Normal | Triage Stage:
Keywords: | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by cjerdonek):

* cc: chris.jerdonek@… (added)
* needs_better_patch: => 0
* easy: 0 => 1
* needs_tests: => 0
* needs_docs: => 0


--
Ticket URL: <https://code.djangoproject.com/ticket/21884#comment:1>

Django

unread,
Jan 27, 2014, 7:26:46 PM1/27/14
to django-...@googlegroups.com
#21884: field lookup docs don't say exact is default behavior
--------------------------------------+------------------------------------

Reporter: cjerdonek | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Documentation | Version: 1.6
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted

Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by timo):

* stage: Unreviewed => Accepted


--
Ticket URL: <https://code.djangoproject.com/ticket/21884#comment:2>

Django

unread,
Feb 15, 2014, 9:55:50 AM2/15/14
to django-...@googlegroups.com
#21884: field lookup docs don't say exact is default behavior
--------------------------------------+------------------------------------
Reporter: cjerdonek | Owner: chomik
Type: Cleanup/optimization | Status: assigned
Component: Documentation | Version: 1.6

Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by chomik):

* status: new => assigned
* owner: nobody => chomik


--
Ticket URL: <https://code.djangoproject.com/ticket/21884#comment:3>

Django

unread,
Feb 15, 2014, 10:47:45 AM2/15/14
to django-...@googlegroups.com
#21884: field lookup docs don't say exact is default behavior
--------------------------------------+------------------------------------
Reporter: cjerdonek | Owner: chomik
Type: Cleanup/optimization | Status: assigned
Component: Documentation | Version: 1.6

Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
--------------------------------------+------------------------------------

Comment (by chomik):

Pull request https://github.com/django/django/pull/2293 waiting for review
and acceptance.

--
Ticket URL: <https://code.djangoproject.com/ticket/21884#comment:4>

Django

unread,
Feb 15, 2014, 11:12:32 AM2/15/14
to django-...@googlegroups.com
#21884: field lookup docs don't say exact is default behavior
--------------------------------------+------------------------------------
Reporter: cjerdonek | Owner: chomik
Type: Cleanup/optimization | Status: closed
Component: Documentation | Version: 1.6
Severity: Normal | Resolution: fixed

Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by chomik <to.chomik@…>):

* status: assigned => closed
* resolution: => fixed


Comment:

In [changeset:"985ae732b2fbb073a7c98ff857f463449345df27"]:
{{{
#!CommitTicketReference repository=""
revision="985ae732b2fbb073a7c98ff857f463449345df27"
Fixed #21884 -- Mentioned that exact is the defaut QuerySet lookup type

Thanks to cjerdonek for the suggestion.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/21884#comment:5>

Reply all
Reply to author
Forward
0 new messages