It should be updated to have above the fold: "Don't do this". But until
`raw()` is completely removed, the page should detail how to do it.
I'll submit a PR to do just this, but I would appreciate a second opinion
on how best to word/present this.
https://docs.djangoproject.com/en/2.1/topics/db/sql/
Reference talk: https://youtu.be/p9Bgr5VOISo?t=1433
--
Ticket URL: <https://code.djangoproject.com/ticket/29940>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_better_patch: 0 => 1
* has_patch: 0 => 1
* stage: Unreviewed => Accepted
Comment:
[https://github.com/django/django/pull/10632 PR]
I agree with what Simon said on the ticket. There are still use cases for
`raw()` and it's not likely to be deprecated.
--
Ticket URL: <https://code.djangoproject.com/ticket/29940#comment:1>
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"9886dffdf45873a5ce427eded9277f37d4a30ef1" 9886dffd]:
{{{
#!CommitTicketReference repository=""
revision="9886dffdf45873a5ce427eded9277f37d4a30ef1"
Fixed #29940 -- Recommended using the ORM rather than raw SQL.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/29940#comment:2>
Comment (by Tim Graham <timograham@…>):
In [changeset:"353afec70d8d60fac8699bbd3ab10efa96ee41f9" 353afec7]:
{{{
#!CommitTicketReference repository=""
revision="353afec70d8d60fac8699bbd3ab10efa96ee41f9"
[2.1.x] Fixed #29940 -- Recommended using the ORM rather than raw SQL.
Backport of 9886dffdf45873a5ce427eded9277f37d4a30ef1 from master.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/29940#comment:3>