[Django] #36944: Truncator's docstring state that `MAX_LENGTH_HTML` is enforced but is not, also `truncatechars_html` and `truncatewords_html` should be corrected

3 views
Skip to first unread message

Django

unread,
Feb 24, 2026, 7:06:04 AM (11 days ago) Feb 24
to django-...@googlegroups.com
#36944: Truncator's docstring state that `MAX_LENGTH_HTML` is enforced but is not,
also `truncatechars_html` and `truncatewords_html` should be corrected
-------------------------------------+-------------------------------------
Reporter: Natalia | Owner: Natalia Bidart
Bidart |
Type: | Status: assigned
Cleanup/optimization |
Component: | Version: 6.0
Documentation |
Severity: Normal | Keywords:
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
`Truncator.MAX_LENGTH_HTML` is set to 5,000,000 characters and this limit
was used to limit the input size for processing. After
[https://github.com/django/django/commit/6ee37ada3241ed263d8d1c2901b030d964cbd161
a refactor], this limit is no longer enforced so the docs for
`truncatechars_html` and `truncatewords_html` should be corrected.
--
Ticket URL: <https://code.djangoproject.com/ticket/36944>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Feb 24, 2026, 7:31:52 AM (11 days ago) Feb 24
to django-...@googlegroups.com
#36944: Truncator's docstring state that `MAX_LENGTH_HTML` is enforced but is not,
also `truncatechars_html` and `truncatewords_html` should be corrected
-------------------------------------+-------------------------------------
Reporter: Natalia Bidart | Owner: Natalia
Type: | Bidart
Cleanup/optimization | Status: assigned
Component: Documentation | Version: 6.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 Jacob Walls):

* stage: Unreviewed => Accepted

--
Ticket URL: <https://code.djangoproject.com/ticket/36944#comment:1>
Reply all
Reply to author
Forward
0 new messages