Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#25213 closed Cleanup/optimization (fixed)

Discourage use of QuerySet.extra()

Reported by: Tim Graham Owned by: Tim Graham
Component: Documentation Version: 1.8
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

from Anssi 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.

Change History (3)

comment:1 by Tim Graham, 9 years ago

Has patch: set

comment:2 by Tim Graham <timograham@…>, 9 years ago

Resolution: fixed
Status: newclosed

In e8cd65f8:

Fixed #25213 -- Discouraged use of QuerySet.extra()

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

comment:3 by Tim Graham <timograham@…>, 9 years ago

In ce0f2a4:

[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

Note: See TracTickets for help on using tickets.
Back to Top