[Django] #31171: Documentation error in custom template tags

5 views
Skip to first unread message

Django

unread,
Jan 16, 2020, 6:27:06 AM1/16/20
to django-...@googlegroups.com
#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.

Django

unread,
Jan 16, 2020, 6:43:16 AM1/16/20
to django-...@googlegroups.com
#31171: Documentation error in custom template tags
-------------------------------------+-------------------------------------

Reporter: Takayuki Hirayama | Owner: nobody
Type: | Status: new
Cleanup/optimization |
Component: Documentation | Version: master
Severity: Normal | Resolution:

Keywords: | Triage Stage:
| Unreviewed
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

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>

Django

unread,
Jan 16, 2020, 9:02:31 AM1/16/20
to django-...@googlegroups.com
#31171: Misleading wording in custom template tags docs.
-------------------------------------+-------------------------------------
Reporter: Takayuki Hirayama | Owner: Takayuki
Type: | Hirayama
Cleanup/optimization | Status: assigned
Component: Documentation | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted

Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by felixxm):

* owner: nobody => Takayuki Hirayama
* status: new => assigned
* stage: Unreviewed => Accepted


--
Ticket URL: <https://code.djangoproject.com/ticket/31171#comment:2>

Django

unread,
Jan 17, 2020, 3:20:56 AM1/17/20
to django-...@googlegroups.com
#31171: Misleading wording in custom template tags docs.
-------------------------------------+-------------------------------------
Reporter: Takayuki Hirayama | Owner: Takayuki
Type: | Hirayama
Cleanup/optimization | Status: closed
Component: Documentation | Version: master
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Accepted

Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak <felisiak.mariusz@…>):

* 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>

Django

unread,
Jan 17, 2020, 3:23:04 AM1/17/20
to django-...@googlegroups.com
#31171: Misleading wording in custom template tags docs.
-------------------------------------+-------------------------------------
Reporter: Takayuki Hirayama | Owner: Takayuki
Type: | Hirayama
Cleanup/optimization | Status: closed
Component: Documentation | Version: master

Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

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>

Reply all
Reply to author
Forward
0 new messages