[https://docs.djangoproject.com/en/dev/howto/custom-template-tags/#auto-
escaping-considerations howto/custom-template-tags.txt]
{{{
from django.template import Context
def render(self, context):
# ...
new_context = Context({'var': obj}, autoescape=context.autoescape)
# ... Do something with new_context ...
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/31171>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
Comment (by Takayuki Hirayama):
Pull Request for this ticket.
[https://github.com/django/django/pull/12330]
--
Ticket URL: <https://code.djangoproject.com/ticket/31171#comment:1>
* owner: nobody => Takayuki Hirayama
* status: new => assigned
* stage: Unreviewed => Accepted
--
Ticket URL: <https://code.djangoproject.com/ticket/31171#comment:2>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"73563183c2ea92e9ef1d3a1f790a503acc14ade2" 7356318]:
{{{
#!CommitTicketReference repository=""
revision="73563183c2ea92e9ef1d3a1f790a503acc14ade2"
Fixed #31171 -- Fixed wording in auto-escaping section of custom template
tags docs.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/31171#comment:3>
Comment (by Mariusz Felisiak <felisiak.mariusz@…>):
In [changeset:"f0e1a69c99c43a812c647811265b2345dda4ba04" f0e1a69c]:
{{{
#!CommitTicketReference repository=""
revision="f0e1a69c99c43a812c647811265b2345dda4ba04"
[3.0.x] Fixed #31171 -- Fixed wording in auto-escaping section of custom
template tags docs.
Backport of 73563183c2ea92e9ef1d3a1f790a503acc14ade2 from master
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/31171#comment:4>