#31171: Documentation error in custom template tags
------------------------------------------------+------------------------
Reporter: Takayuki Hirayama | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Documentation | Version: master
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 1
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
------------------------------------------------+------------------------
In this sample code, render () method is implemented as a function.
[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.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/055.9e2b32dd8c85556c279a4ecb73cc5e4d%40djangoproject.com.