diff options
Diffstat (limited to 'docs/ref/forms')
| -rw-r--r-- | docs/ref/forms/api.txt | 12 | ||||
| -rw-r--r-- | docs/ref/forms/fields.txt | 14 | ||||
| -rw-r--r-- | docs/ref/forms/renderers.txt | 6 |
3 files changed, 0 insertions, 32 deletions
diff --git a/docs/ref/forms/api.txt b/docs/ref/forms/api.txt index 28cd452c4e..33d0806859 100644 --- a/docs/ref/forms/api.txt +++ b/docs/ref/forms/api.txt @@ -1192,10 +1192,6 @@ Attributes of ``BoundField`` When rendering a field with errors, ``aria-invalid="true"`` will be set on the field's widget to indicate there is an error to screen reader users. - .. versionchanged:: 5.0 - - The ``aria-invalid="true"`` was added when a field has errors. - .. attribute:: BoundField.field The form :class:`~django.forms.Field` instance from the form class that @@ -1289,8 +1285,6 @@ Attributes of ``BoundField`` .. attribute:: BoundField.template_name - .. versionadded:: 5.0 - The name of the template rendered with :meth:`.BoundField.as_field_group`. A property returning the value of the @@ -1323,8 +1317,6 @@ Methods of ``BoundField`` .. method:: BoundField.as_field_group() - .. versionadded:: 5.0 - Renders the field using :meth:`.BoundField.render` with default values which renders the ``BoundField``, including its label, help text and errors using the template's :attr:`~django.forms.Field.template_name` if set @@ -1372,8 +1364,6 @@ Methods of ``BoundField`` .. method:: BoundField.get_context() - .. versionadded:: 5.0 - Return the template context for rendering the field. The available context is ``field`` being the instance of the bound field. @@ -1426,8 +1416,6 @@ Methods of ``BoundField`` .. method:: BoundField.render(template_name=None, context=None, renderer=None) - .. versionadded:: 5.0 - The render method is called by ``as_field_group``. All arguments are optional and default to: diff --git a/docs/ref/forms/fields.txt b/docs/ref/forms/fields.txt index d6bd67e3d4..2ae4fe2be6 100644 --- a/docs/ref/forms/fields.txt +++ b/docs/ref/forms/fields.txt @@ -322,10 +322,6 @@ inside ``aria-describedby``: >>> print(f["username"]) <input type="text" name="username" aria-describedby="custom-description id_username_helptext" maxlength="255" id="id_username" required> -.. versionchanged:: 5.0 - - ``aria-describedby`` was added to associate ``help_text`` with its input. - .. versionchanged:: 5.1 ``aria-describedby`` support was added for ``<fieldset>``. @@ -397,8 +393,6 @@ be ignored in favor of the value from the form's initial data. .. attribute:: Field.template_name -.. versionadded:: 5.0 - The ``template_name`` argument allows a custom template to be used when the field is rendered with :meth:`~django.forms.BoundField.as_field_group`. By default this value is set to ``"django/forms/field.html"``. Can be changed per @@ -513,12 +507,6 @@ For each field, we describe the default widget used if you don't specify other data types, such as integers or booleans, consider using :class:`TypedChoiceField` instead. - .. versionchanged:: 5.0 - - Support for mappings and using - :ref:`enumeration types <field-choices-enum-types>` directly in - ``choices`` was added. - ``DateField`` ------------- @@ -1145,8 +1133,6 @@ For each field, we describe the default widget used if you don't specify .. attribute:: assume_scheme - .. versionadded:: 5.0 - The scheme assumed for URLs provided without one. Defaults to ``"http"``. For example, if ``assume_scheme`` is ``"https"`` and the provided value is ``"example.com"``, the normalized value will be diff --git a/docs/ref/forms/renderers.txt b/docs/ref/forms/renderers.txt index 02b3cac7fb..e527a70c57 100644 --- a/docs/ref/forms/renderers.txt +++ b/docs/ref/forms/renderers.txt @@ -61,8 +61,6 @@ should return a rendered templates (as a string) or raise .. attribute:: field_template_name - .. versionadded:: 5.0 - The default name of the template used to render a ``BoundField``. Defaults to ``"django/forms/field.html"`` @@ -173,8 +171,6 @@ forms receive a dictionary with the following values: Context available in field templates ==================================== -.. versionadded:: 5.0 - Field templates receive a context from :meth:`.BoundField.get_context`. By default, fields receive a dictionary with the following values: @@ -224,8 +220,6 @@ renderer. Then overriding form templates works :doc:`the same as Overriding built-in field templates =================================== -.. versionadded:: 5.0 - :attr:`.Field.template_name` To override field templates, you must use the :class:`TemplatesSetting` |
