Remove versionadded/versionchanged notes for 2.9

pull/6263/head
Matt Westcott 2020-07-28 12:15:24 +01:00 zatwierdzone przez Matt Westcott
rodzic 545a05338e
commit e0dc53d9ad
5 zmienionych plików z 0 dodań i 18 usunięć

Wyświetl plik

@ -47,10 +47,6 @@ Here's an example:
)
.. versionchanged:: 2.9
Fields on a custom image model can now be defined as required (``blank=False``).
Then set the ``WAGTAILIMAGES_IMAGE_MODEL`` setting to point to it:
.. code-block:: python

Wyświetl plik

@ -227,8 +227,6 @@ Or, alternately, using the ``set`` tag:
Utilising ``select_related`` to improve efficiency
--------------------------------------------------
.. versionadded:: 2.9
For models with foreign key relationships to other objects (e.g. pages),
which are very often needed to output values in templates, you can set
the ``select_related`` attribute on your model to have Wagtail utilise

Wyświetl plik

@ -280,10 +280,6 @@ The ``Site`` model is useful for multi-site installations as it allows an admini
The :meth:`~wagtail.core.models.Site.find_for_request` function returns the Site object that will handle the given HTTP request.
.. versionchanged:: 2.9
Previous versions of Wagtail required the middleware class :class:`~wagtail.core.middleware.SiteMiddleware`, which pre-populated ``request.site`` with the site object. This is now deprecated, to avoid redundant database queries and potential clashes with Django's Sites framework.
Database fields
~~~~~~~~~~~~~~~

Wyświetl plik

@ -551,10 +551,6 @@ By default the redirect importer keeps track of the uploaded file as a temp file
Form builder
============
.. versionadded:: 2.7.4/2.9.3
The ``WAGTAILFORMS_HELP_TEXT_ALLOW_HTML`` option was added.
.. code-block:: python
WAGTAILFORMS_HELP_TEXT_ALLOW_HTML = True

Wyświetl plik

@ -231,10 +231,6 @@ Returns the Site object corresponding to the current request.
{% wagtail_site as current_site %}
.. versionadded:: 2.9
In previous versions, the recommended way to refer to the current site was through the ``request.site`` attribute provided by :class:`~wagtail.core.middleware.SiteMiddleware`; this is now deprecated.
.. _wagtailuserbar_tag:
Wagtail User Bar