However the example shows `field.label` being used. This would give the
field's label this world be "name", in the line linked below.
Instead I believe this example should use `field.label_tag` which would
give ` <label ...>name:</label>`. This is closer to what the template is
actually doing.
https://github.com/django/django/blob/main/docs/releases/5.0.txt#L62
https://github.com/django/django/blob/main/django/forms/templates/django/forms/field.html#L5
--
Ticket URL: <https://code.djangoproject.com/ticket/34616>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* type: Uncategorized => Bug
* component: Uncategorized => Documentation
* easy: 0 => 1
* stage: Unreviewed => Accepted
--
Ticket URL: <https://code.djangoproject.com/ticket/34616#comment:1>
* owner: nobody => Michael Howitz
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/34616#comment:2>
* version: 4.2 => dev
* type: Bug => Cleanup/optimization
--
Ticket URL: <https://code.djangoproject.com/ticket/34616#comment:3>
* owner: Michael Howitz => Christopher Cave-Ayland
* has_patch: 0 => 1
Comment:
https://github.com/django/django/pull/16912
--
Ticket URL: <https://code.djangoproject.com/ticket/34616#comment:4>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"24d56e21c3ce8ec9392e8fecc462426e9ed92bbe" 24d56e21]:
{{{
#!CommitTicketReference repository=""
revision="24d56e21c3ce8ec9392e8fecc462426e9ed92bbe"
Fixed #34616 -- Corrected label examples in 5.0 release notes.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/34616#comment:5>