[Django] #35441: Context autoescape parameter is not documented

23 views
Skip to first unread message

Django

unread,
May 8, 2024, 5:13:35 PM5/8/24
to django-...@googlegroups.com
#35441: Context autoescape parameter is not documented
-------------------------------------------+------------------------
Reporter: Roman Donchenko | Owner: nobody
Type: Bug | Status: new
Component: Documentation | Version: 5.0
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------------+------------------------
In #35296 I was advised to use the `autoescape` parameter of the `Context`
constructor. However, it is not documented. The
[https://docs.djangoproject.com/en/5.0/ref/templates/api/#django.template.Context
reference for Context] only mentions the `dict_` parameter.

If this parameter is part of the public API, it should be documented.
--
Ticket URL: <https://code.djangoproject.com/ticket/35441>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
May 9, 2024, 4:43:23 PM5/9/24
to django-...@googlegroups.com
#35441: Context autoescape parameter is not documented
--------------------------------------+------------------------------------
Reporter: Roman Donchenko | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Template system | Version: 5.0
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by Natalia Bidart):

* component: Documentation => Template system
* stage: Unreviewed => Accepted
* type: Bug => Cleanup/optimization

Comment:

Hello Roman,

I have followed the docs and pointers you provided and I think you are
right, the `Context` docs could use some improving. Would you be willing
to help making a patch? Thank you!
--
Ticket URL: <https://code.djangoproject.com/ticket/35441#comment:1>

Django

unread,
May 11, 2024, 8:50:51 PM5/11/24
to django-...@googlegroups.com
#35441: Context autoescape parameter is not documented
-------------------------------------+-------------------------------------
Reporter: Roman Donchenko | Owner: John
Type: | Higgins
Cleanup/optimization | Status: assigned
Component: Template system | Version: 5.0
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by John Higgins):

* owner: nobody => John Higgins
* status: new => assigned

Comment:

I'll write some docs for this!
--
Ticket URL: <https://code.djangoproject.com/ticket/35441#comment:2>

Django

unread,
May 12, 2024, 11:08:55 PM5/12/24
to django-...@googlegroups.com
#35441: Context autoescape parameter is not documented
-------------------------------------+-------------------------------------
Reporter: Roman Donchenko | Owner: John
Type: | Higgins
Cleanup/optimization | Status: assigned
Component: Template system | Version: 5.0
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 John Higgins):

* has_patch: 0 => 1

--
Ticket URL: <https://code.djangoproject.com/ticket/35441#comment:3>

Django

unread,
May 12, 2024, 11:11:39 PM5/12/24
to django-...@googlegroups.com
#35441: Context autoescape parameter is not documented
-------------------------------------+-------------------------------------
Reporter: Roman Donchenko | Owner: John
Type: | Higgins
Cleanup/optimization | Status: assigned
Component: Template system | Version: 5.0
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
-------------------------------------+-------------------------------------
Comment (by John Higgins):

Here's a link to the patch:
https://github.com/django/django/pull/18161/files
--
Ticket URL: <https://code.djangoproject.com/ticket/35441#comment:4>

Django

unread,
May 13, 2024, 2:12:40 AM5/13/24
to django-...@googlegroups.com
#35441: Context autoescape parameter is not documented
-------------------------------------+-------------------------------------
Reporter: Roman Donchenko | Owner: John
Type: | Higgins
Cleanup/optimization | Status: assigned
Component: Template system | Version: 5.0
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

* needs_better_patch: 0 => 1

--
Ticket URL: <https://code.djangoproject.com/ticket/35441#comment:5>

Django

unread,
May 14, 2024, 4:08:04 PM5/14/24
to django-...@googlegroups.com
#35441: Context autoescape parameter is not documented
-------------------------------------+-------------------------------------
Reporter: Roman Donchenko | Owner: John
Type: | Higgins
Cleanup/optimization | Status: assigned
Component: Template system | Version: 5.0
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 John Higgins):

* needs_better_patch: 1 => 0

--
Ticket URL: <https://code.djangoproject.com/ticket/35441#comment:6>

Django

unread,
Jun 1, 2024, 5:46:40 PM6/1/24
to django-...@googlegroups.com
#35441: Context autoescape parameter is not documented
-------------------------------------+-------------------------------------
Reporter: Roman Donchenko | Owner: John
Type: | Higgins
Cleanup/optimization | Status: assigned
Component: Template system | Version: 5.0
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
-------------------------------------+-------------------------------------
Comment (by John Higgins):

This has a patch ready for review if anyone wants to review it.
--
Ticket URL: <https://code.djangoproject.com/ticket/35441#comment:7>

Django

unread,
Jun 17, 2024, 3:57:56 AM6/17/24
to django-...@googlegroups.com
#35441: Context autoescape parameter is not documented
-------------------------------------+-------------------------------------
Reporter: Roman Donchenko | Owner: John
Type: | Higgins
Cleanup/optimization | Status: assigned
Component: Template system | Version: 5.0
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Sarah Boyce):

* needs_better_patch: 0 => 1

--
Ticket URL: <https://code.djangoproject.com/ticket/35441#comment:8>

Django

unread,
Jun 18, 2024, 11:35:35 PM6/18/24
to django-...@googlegroups.com
#35441: Context autoescape parameter is not documented
-------------------------------------+-------------------------------------
Reporter: Roman Donchenko | Owner: John
Type: | Higgins
Cleanup/optimization | Status: assigned
Component: Template system | Version: 5.0
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 John Higgins):

* needs_better_patch: 1 => 0

--
Ticket URL: <https://code.djangoproject.com/ticket/35441#comment:9>

Django

unread,
Jun 19, 2024, 9:44:42 AM6/19/24
to django-...@googlegroups.com
#35441: Context autoescape parameter is not documented
-------------------------------------+-------------------------------------
Reporter: Roman Donchenko | Owner: John
Type: | Higgins
Cleanup/optimization | Status: assigned
Component: Template system | Version: 5.0
Severity: Normal | Resolution:
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Sarah Boyce):

* stage: Accepted => Ready for checkin

--
Ticket URL: <https://code.djangoproject.com/ticket/35441#comment:10>

Django

unread,
Jun 20, 2024, 3:35:06 AM6/20/24
to django-...@googlegroups.com
#35441: Context autoescape parameter is not documented
-------------------------------------+-------------------------------------
Reporter: Roman Donchenko | Owner: John
Type: | Higgins
Cleanup/optimization | Status: closed
Component: Template system | Version: 5.0
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Sarah Boyce <42296566+sarahboyce@…>):

* resolution: => fixed
* status: assigned => closed

Comment:

In [changeset:"60acad933d66e116c89150d3eb9040f62ca871a1" 60acad93]:
{{{#!CommitTicketReference repository=""
revision="60acad933d66e116c89150d3eb9040f62ca871a1"
Fixed #35441 -- Documented Context and RequestContext keyword arguments.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/35441#comment:11>

Django

unread,
Jun 20, 2024, 3:38:18 AM6/20/24
to django-...@googlegroups.com
#35441: Context autoescape parameter is not documented
-------------------------------------+-------------------------------------
Reporter: Roman Donchenko | Owner: John
Type: | Higgins
Cleanup/optimization | Status: closed
Component: Template system | Version: 5.0
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Sarah Boyce <42296566+sarahboyce@…>):

In [changeset:"874fea63b477851d5902200ab3f7ed139c1c9cd2" 874fea6]:
{{{#!CommitTicketReference repository=""
revision="874fea63b477851d5902200ab3f7ed139c1c9cd2"
[5.1.x] Fixed #35441 -- Documented Context and RequestContext keyword
arguments.

Backport of 60acad933d66e116c89150d3eb9040f62ca871a1 from main.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/35441#comment:12>
Reply all
Reply to author
Forward
0 new messages