#31171 closed Cleanup/optimization (fixed)
Misleading wording in custom template tags docs.
Reported by: | Takayuki Hirayama | Owned by: | Takayuki Hirayama |
---|---|---|---|
Component: | Documentation | Version: | dev |
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
In this sample code, render () method is implemented as a function.
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 ...
Change History (4)
comment:1 by , 5 years ago
comment:2 by , 5 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
Summary: | Documentation error in custom template tags → Misleading wording in custom template tags docs. |
Triage Stage: | Unreviewed → Accepted |
Note:
See TracTickets
for help on using tickets.
Pull Request for this ticket. https://github.com/django/django/pull/12330