Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#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 Takayuki Hirayama, 5 years ago

Pull Request for this ticket. https://github.com/django/django/pull/12330

comment:2 by Mariusz Felisiak, 5 years ago

Owner: changed from nobody to Takayuki Hirayama
Status: newassigned
Summary: Documentation error in custom template tagsMisleading wording in custom template tags docs.
Triage Stage: UnreviewedAccepted

comment:3 by Mariusz Felisiak <felisiak.mariusz@…>, 5 years ago

Resolution: fixed
Status: assignedclosed

In 7356318:

Fixed #31171 -- Fixed wording in auto-escaping section of custom template tags docs.

comment:4 by Mariusz Felisiak <felisiak.mariusz@…>, 5 years ago

In f0e1a69c:

[3.0.x] Fixed #31171 -- Fixed wording in auto-escaping section of custom template tags docs.

Backport of 73563183c2ea92e9ef1d3a1f790a503acc14ade2 from master

Note: See TracTickets for help on using tickets.
Back to Top