diff options
Diffstat (limited to 'docs/ref/forms')
| -rw-r--r-- | docs/ref/forms/api.txt | 28 | ||||
| -rw-r--r-- | docs/ref/forms/fields.txt | 5 | ||||
| -rw-r--r-- | docs/ref/forms/formsets.txt | 4 | ||||
| -rw-r--r-- | docs/ref/forms/models.txt | 8 | ||||
| -rw-r--r-- | docs/ref/forms/renderers.txt | 8 | ||||
| -rw-r--r-- | docs/ref/forms/widgets.txt | 10 |
6 files changed, 0 insertions, 63 deletions
diff --git a/docs/ref/forms/api.txt b/docs/ref/forms/api.txt index 72937bfa9a..0d526d26aa 100644 --- a/docs/ref/forms/api.txt +++ b/docs/ref/forms/api.txt @@ -529,8 +529,6 @@ attributes. ``template_name`` ~~~~~~~~~~~~~~~~~ -.. versionadded:: 4.0 - .. attribute:: Form.template_name The name of the template rendered if the form is cast into a string, e.g. via @@ -549,8 +547,6 @@ class. ``render()`` ~~~~~~~~~~~~ -.. versionadded:: 4.0 - .. method:: Form.render(template_name=None, context=None, renderer=None) The render method is called by ``__str__`` as well as the @@ -567,8 +563,6 @@ single call. ``get_context()`` ~~~~~~~~~~~~~~~~~ -.. versionadded:: 4.0 - .. method:: Form.get_context() Return the template context for rendering the form. @@ -583,8 +577,6 @@ The available context is: ``template_name_label`` ~~~~~~~~~~~~~~~~~~~~~~~ -.. versionadded:: 4.0 - .. attribute:: Form.template_name_label The template used to render a field's ``<label>``, used when calling @@ -998,16 +990,12 @@ Customizing the error list format .. attribute:: renderer - .. versionadded:: 4.0 - Specifies the :doc:`renderer <renderers>` to use for ``ErrorList``. Defaults to ``None`` which means to use the default renderer specified by the :setting:`FORM_RENDERER` setting. .. attribute:: template_name - .. versionadded:: 4.0 - The name of the template used when calling ``__str__`` or :meth:`render`. By default this is ``'django/forms/errors/list/default.html'`` which is a proxy for the @@ -1015,16 +1003,12 @@ Customizing the error list format .. attribute:: template_name_text - .. versionadded:: 4.0 - The name of the template used when calling :meth:`.as_text`. By default this is ``'django/forms/errors/list/text.html'``. This template renders the errors as a list of bullet points. .. attribute:: template_name_ul - .. versionadded:: 4.0 - The name of the template used when calling :meth:`.as_ul`. By default this is ``'django/forms/errors/list/ul.html'``. This template renders the errors in ``<li>`` tags with a wrapping ``<ul>`` with the CSS @@ -1032,8 +1016,6 @@ Customizing the error list format .. method:: get_context() - .. versionadded:: 4.0 - Return context for rendering of errors in a template. The available context is: @@ -1043,8 +1025,6 @@ Customizing the error list format .. method:: render(template_name=None, context=None, renderer=None) - .. versionadded:: 4.0 - The render method is called by ``__str__`` as well as by the :meth:`.as_ul` method. @@ -1069,10 +1049,6 @@ Customizing the error list format overriding the default template, see also :ref:`overriding-built-in-form-templates`. -.. versionchanged:: 4.0 - - Rendering of :class:`ErrorList` was moved to the template engine. - .. deprecated:: 4.0 The ability to return a ``str`` when calling the ``__str__`` method is @@ -1341,10 +1317,6 @@ Methods of ``BoundField`` overriding the default template, see also :ref:`overriding-built-in-form-templates`. - .. versionchanged:: 4.0 - - The label is now rendered using the template engine. - .. versionchanged:: 4.1 The ``tag`` argument was added. diff --git a/docs/ref/forms/fields.txt b/docs/ref/forms/fields.txt index 4d0205b4d3..3b59dd3b07 100644 --- a/docs/ref/forms/fields.txt +++ b/docs/ref/forms/fields.txt @@ -1350,11 +1350,6 @@ generating choices. See :ref:`iterating-relationship-choices` for details. def label_from_instance(self, obj): return "My Object #%i" % obj.id - .. versionchanged:: 4.0 - - Support for containing ``%(value)s`` in the ``invalid_choice`` error - message was added. - ``ModelMultipleChoiceField`` ---------------------------- diff --git a/docs/ref/forms/formsets.txt b/docs/ref/forms/formsets.txt index 97be3fd03e..5010d32681 100644 --- a/docs/ref/forms/formsets.txt +++ b/docs/ref/forms/formsets.txt @@ -16,7 +16,3 @@ Formset API reference. For introductory material about formsets, see the Returns a ``FormSet`` class for the given ``form`` class. See :doc:`formsets </topics/forms/formsets>` for example usage. - - .. versionchanged:: 4.0 - - The ``renderer`` argument was added. diff --git a/docs/ref/forms/models.txt b/docs/ref/forms/models.txt index 9b0dbc964d..b1cc131d79 100644 --- a/docs/ref/forms/models.txt +++ b/docs/ref/forms/models.txt @@ -72,10 +72,6 @@ Model Form API reference. For introductory material about model forms, see the See :ref:`model-formsets` for example usage. - .. versionchanged:: 4.0 - - The ``renderer`` argument was added. - .. versionchanged:: 4.1 The ``edit_only`` argument was added. @@ -94,10 +90,6 @@ Model Form API reference. For introductory material about model forms, see the See :ref:`inline-formsets` for example usage. - .. versionchanged:: 4.0 - - The ``renderer`` argument was added. - .. versionchanged:: 4.1 The ``edit_only`` argument was added. diff --git a/docs/ref/forms/renderers.txt b/docs/ref/forms/renderers.txt index f11b23ab12..e30dfe3947 100644 --- a/docs/ref/forms/renderers.txt +++ b/docs/ref/forms/renderers.txt @@ -182,8 +182,6 @@ needs can be located. Context available in formset templates ====================================== -.. versionadded:: 4.0 - Formset templates receive a context from :meth:`.BaseFormSet.get_context`. By default, formsets receive a dictionary with the following values: @@ -192,8 +190,6 @@ default, formsets receive a dictionary with the following values: Context available in form templates =================================== -.. versionadded:: 4.0 - Form templates receive a context from :meth:`.Form.get_context`. By default, forms receive a dictionary with the following values: @@ -224,8 +220,6 @@ defines ``widget['subwidgets']`` for looping purposes. Overriding built-in formset templates ===================================== -.. versionadded:: 4.0 - :attr:`.BaseFormSet.template_name` To override formset templates, you must use the :class:`TemplatesSetting` @@ -237,8 +231,6 @@ renderer. Then overriding widget templates works :doc:`the same as Overriding built-in form templates ================================== -.. versionadded:: 4.0 - :attr:`.Form.template_name` To override form templates, you must use the :class:`TemplatesSetting` diff --git a/docs/ref/forms/widgets.txt b/docs/ref/forms/widgets.txt index e0f175af79..e29a54c876 100644 --- a/docs/ref/forms/widgets.txt +++ b/docs/ref/forms/widgets.txt @@ -725,11 +725,6 @@ that specifies the template used to render each choice. For example, for the ... </div> - .. versionchanged:: 4.0 - - So they are announced more concisely by screen readers, radio buttons - were changed to render in ``<div>`` tags. - For more granular control over the generated markup, you can loop over the radio buttons in the template. Assuming a form ``myform`` with a field ``beatles`` that uses a ``RadioSelect`` as its widget: @@ -836,11 +831,6 @@ that specifies the template used to render each choice. For example, for the The outer ``<div>`` container receives the ``id`` attribute of the widget, if defined, or :attr:`BoundField.auto_id` otherwise. - .. versionchanged:: 4.0 - - So they are announced more concisely by screen readers, checkboxes were - changed to render in ``<div>`` tags. - Like :class:`RadioSelect`, you can loop over the individual checkboxes for the widget's choices. Unlike :class:`RadioSelect`, the checkboxes won't include the ``required`` HTML attribute if the field is required because browser validation |
