[Django] #25213: Discourage use of QuerySet.extra()

4 views
Skip to first unread message

Django

unread,
Aug 3, 2015, 4:30:50 PM8/3/15
to django-...@googlegroups.com
#25213: Discourage use of QuerySet.extra()
-------------------------------------+-------------------------------------
Reporter: timgraham | Owner: timgraham
Type: | Status: new
Cleanup/optimization |
Component: | Version: 1.8
Documentation |
Severity: Normal | Keywords:
Triage Stage: Accepted | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
from Anssi [https://groups.google.com/d/topic/django-
developers/FojuU0syO8Y/discussion on django-developers]:

You can annotate raw SQL with expressions. I think the only case that
can't be done with expressions is addition of extra tables to the query. I
am certain we will get a solution to this too in future releases.

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

Django

unread,
Aug 3, 2015, 7:01:11 PM8/3/15
to django-...@googlegroups.com
#25213: Discourage use of QuerySet.extra()
-------------------------------------+-------------------------------------
Reporter: timgraham | Owner: timgraham
Type: | Status: new
Cleanup/optimization |
Component: Documentation | Version: 1.8
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by timgraham):

* has_patch: 0 => 1


Comment:

[https://github.com/django/django/pull/5095 PR]

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

Django

unread,
Aug 5, 2015, 8:15:33 AM8/5/15
to django-...@googlegroups.com
#25213: Discourage use of QuerySet.extra()
-------------------------------------+-------------------------------------
Reporter: timgraham | Owner: timgraham
Type: | Status: closed

Cleanup/optimization |
Component: Documentation | Version: 1.8
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Tim Graham <timograham@…>):

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


Comment:

In [changeset:"e8cd65f8297928d3fa7ad3d338953a4423028713" e8cd65f8]:
{{{
#!CommitTicketReference repository=""
revision="e8cd65f8297928d3fa7ad3d338953a4423028713"
Fixed #25213 -- Discouraged use of QuerySet.extra()

Thanks Anssi Kääriäinen for the draft text and Simon Charette
for review.
}}}

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

Django

unread,
Aug 5, 2015, 8:15:58 AM8/5/15
to django-...@googlegroups.com
#25213: Discourage use of QuerySet.extra()
-------------------------------------+-------------------------------------
Reporter: timgraham | Owner: timgraham
Type: | Status: closed
Cleanup/optimization |
Component: Documentation | Version: 1.8
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by Tim Graham <timograham@…>):

In [changeset:"ce0f2a4a4f192caf46cc9edd843c87862a668161" ce0f2a4]:
{{{
#!CommitTicketReference repository=""
revision="ce0f2a4a4f192caf46cc9edd843c87862a668161"
[1.8.x] Fixed #25213 -- Discouraged use of QuerySet.extra()

Thanks Anssi Kääriäinen for the draft text and Simon Charette
for review.

Backport of e8cd65f8297928d3fa7ad3d338953a4423028713 from master
}}}

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

Reply all
Reply to author
Forward
0 new messages