Sfoglia il codice sorgente

Remove remaining versionadded directives from before 4.2

Matt Westcott 2 anni fa
parent
commit
a634045b6c

+ 0 - 10
docs/reference/contrib/redirects.md

@@ -37,10 +37,6 @@ For an editor's guide to the interface, see our how-to guide: [Manage redirects]
 
 ## Automatic redirect creation
 
-```{versionadded} 2.16
-
-```
-
 Wagtail automatically creates permanent redirects for pages (and their descendants) when they are moved or their slug is changed. This helps to preserve SEO rankings of pages over time, and helps site visitors get to the right place when using bookmarks or using outdated links.
 
 ### Creating redirects for alternative page routes
@@ -51,12 +47,6 @@ For more information, please see :meth:`~wagtail.models.Page.get_route_paths`.
 
 ### Disabling automatic redirect creation
 
-```{versionadded} 4.0
-When generating redirects, custom field values are now fetched as part of the
-initial database query, so using custom field values in overridden url methods
-will no longer trigger additional per-object queries.
-```
-
 Wagtail's default implementation works best for small-to-medium sized projects (5000 pages or fewer) that mostly use Wagtail's built-in methods for URL generation.
 
 Overrides to the following `Page` methods are respected when generating redirects, but use of specific page fields in those overrides will trigger additional database queries.

+ 0 - 16
docs/reference/pages/model_reference.md

@@ -480,10 +480,6 @@ The `locale` and `translation_key` fields have a unique key constraint to preven
 `PreviewableMixin` is a mixin class that can be added to any non-page Django model to allow previewing its instances.
 Pages already include this mixin, so there is no need to add it.
 
-```{versionadded} 4.0
-The class is added to allow snippets to have live preview in the editor. See [](wagtailsnippets_making_snippets_previewable) for more details.
-```
-
 ### Methods and properties
 
 ```{eval-rst}
@@ -507,10 +503,6 @@ The class is added to allow snippets to have live preview in the editor. See [](
 `RevisionMixin` is an abstract model that can be added to any non-page Django model to allow saving revisions of its instances.
 Pages already include this mixin, so there is no need to add it.
 
-```{versionadded} 4.0
-The model is added to allow snippets to save revisions, revert to a previous revision, and compare changes between revisions. See [](wagtailsnippets_saving_revisions_of_snippets) for more details.
-```
-
 ### Database fields
 
 ```{eval-rst}
@@ -543,10 +535,6 @@ The model is added to allow snippets to save revisions, revert to a previous rev
 `DraftStateMixin` is an abstract model that can be added to any non-page Django model to allow its instances to have unpublished changes.
 This mixin requires {class}`~wagtail.models.RevisionMixin` to be applied. Pages already include this mixin, so there is no need to add it.
 
-```{versionadded} 4.0
-The model is added to allow snippets to have changes that are not immediately reflected to the instance. See [](wagtailsnippets_saving_draft_changes_of_snippets) for more details.
-```
-
 ### Database fields
 
 ```{eval-rst}
@@ -764,10 +752,6 @@ Every time a page is edited, a new `Revision` is created and saved to the databa
 
             Revision.page_revisions.all()
 
-        .. versionadded:: 4.0
-
-            This manager is added as a shorthand to retrieve page revisions.
-
     .. attribute:: submitted_revisions
 
         This manager extends the default manager and is used to retrieve all of the ``Revision`` objects that are awaiting moderator approval.

+ 0 - 4
docs/reference/pages/queryset_reference.md

@@ -187,10 +187,6 @@ menu_items = homepage.get_children().live().in_menu()
 
     .. automethod:: private
 
-    .. versionadded:: 4.1
-
-        The ``private`` method was added as an alias of ``not_public``.
-
     .. automethod:: search
 
         See: :ref:`wagtailsearch_searching_pages`