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.
* has_patch: 0 => 1
Comment:
[https://github.com/django/django/pull/5095 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/25213#comment:1>
* 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>
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>