diff options
| author | Tim Graham <timograham@gmail.com> | 2018-12-27 19:17:23 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2019-01-17 10:50:25 -0500 |
| commit | ec7e179aeb177a2a43b448b30d9286eb8539be8d (patch) | |
| tree | 1ff87c31167e933b69c93af7dc12c46e65608534 /docs/ref/contrib | |
| parent | eb0ce6fa3669971f1e21a3fdba270cf33d603eaa (diff) | |
Removed versionadded/changed annotations for 2.1.
Diffstat (limited to 'docs/ref/contrib')
| -rw-r--r-- | docs/ref/contrib/admin/actions.txt | 2 | ||||
| -rw-r--r-- | docs/ref/contrib/admin/index.txt | 39 | ||||
| -rw-r--r-- | docs/ref/contrib/auth.txt | 8 | ||||
| -rw-r--r-- | docs/ref/contrib/gis/functions.txt | 2 | ||||
| -rw-r--r-- | docs/ref/contrib/gis/geos.txt | 2 | ||||
| -rw-r--r-- | docs/ref/contrib/postgres/fields.txt | 6 |
6 files changed, 0 insertions, 59 deletions
diff --git a/docs/ref/contrib/admin/actions.txt b/docs/ref/contrib/admin/actions.txt index 015427054a..f0c8be7728 100644 --- a/docs/ref/contrib/admin/actions.txt +++ b/docs/ref/contrib/admin/actions.txt @@ -361,8 +361,6 @@ Conditionally enabling or disabling actions Setting permissions for actions ------------------------------- -.. versionadded:: 2.1 - Actions may limit their availability to users with specific permissions by setting an ``allowed_permissions`` attribute on the action function:: diff --git a/docs/ref/contrib/admin/index.txt b/docs/ref/contrib/admin/index.txt index c163dc9f2e..75ad811e69 100644 --- a/docs/ref/contrib/admin/index.txt +++ b/docs/ref/contrib/admin/index.txt @@ -157,8 +157,6 @@ application and imports it. .. attribute:: default_site - .. versionadded:: 2.1 - A dotted import path to the default admin site's class or to a callable that returns a site instance. Defaults to ``'django.contrib.admin.sites.AdminSite'``. See @@ -754,10 +752,6 @@ subclass:: return self.first_name + ' ' + self.last_name full_name.admin_order_field = Concat('first_name', Value(' '), 'last_name') - .. versionadded:: 2.1 - - Support for expressions in ``admin_order_field`` was added. - * Elements of ``list_display`` can also be properties. Please note however, that due to the way properties work in Python, setting ``short_description`` on a property is only possible when using the @@ -1279,10 +1273,6 @@ subclass:: searching with :lookup:`exact` only works with a single search word since two or more words can't all be an exact match unless all words are the same. - .. versionadded:: 2.1 - - The ability to specify a field lookup was added. - Some (older) shortcuts for specifying a field lookup are also available. You can prefix a field in ``search_fields`` with the following characters and it's equivalent to adding ``__<lookup>`` to the field: @@ -1313,8 +1303,6 @@ subclass:: .. attribute:: ModelAdmin.sortable_by - .. versionadded:: 2.1 - By default, the change list page allows sorting by all model fields (and callables that have the ``admin_order_field`` property) specified in :attr:`list_display`. @@ -1433,8 +1421,6 @@ templates used by the :class:`ModelAdmin` views: .. method:: ModelAdmin.delete_queryset(request, queryset) - .. versionadded:: 2.1 - The ``delete_queryset()`` method is given the ``HttpRequest`` and a ``QuerySet`` of objects to be deleted. Override this method to customize the deletion process for the "delete selected objects" :doc:`action @@ -1595,8 +1581,6 @@ templates used by the :class:`ModelAdmin` views: .. method:: ModelAdmin.get_sortable_by(request) - .. versionadded:: 2.1 - The ``get_sortable_by()`` method is passed the ``HttpRequest`` and is expected to return a collection (e.g. ``list``, ``tuple``, or ``set``) of field names that will be sortable in the change list page. @@ -1884,8 +1868,6 @@ templates used by the :class:`ModelAdmin` views: .. method:: ModelAdmin.has_view_permission(request, obj=None) - .. versionadded:: 2.1 - Should return ``True`` if viewing ``obj`` is permitted, ``False`` otherwise. If obj is ``None``, should return ``True`` or ``False`` to indicate whether viewing of objects of this type is permitted in general (e.g., ``False`` @@ -2009,8 +1991,6 @@ templates used by the :class:`ModelAdmin` views: .. method:: ModelAdmin.get_deleted_objects(objs, request) - .. versionadded:: 2.1 - A hook for customizing the deletion process of the :meth:`delete_view` and the "delete selected" :doc:`action <actions>`. @@ -2128,10 +2108,6 @@ To avoid conflicts with user-supplied scripts or libraries, Django's jQuery in your own admin JavaScript without including a second copy, you can use the ``django.jQuery`` object on changelist and add/edit views. -.. versionchanged:: 2.1 - - jQuery was upgraded from 2.2.3 to 3.3.1. - The :class:`ModelAdmin` class requires jQuery by default, so there is no need to add jQuery to your ``ModelAdmin``’s list of media resources unless you have a specific need. For example, if you require the jQuery library to be in the @@ -2411,12 +2387,6 @@ The ``InlineModelAdmin`` class adds or customizes: otherwise. ``obj`` is the parent object being edited or ``None`` when adding a new parent. - .. versionchanged:: 2.1 - - The ``obj`` argument was added. During the deprecation period, it may - also be ``None`` if third-party calls to ``has_add_permission()`` don't - provide it. - .. method:: InlineModelAdmin.has_change_permission(request, obj=None) Should return ``True`` if editing an inline object is permitted, ``False`` @@ -2726,13 +2696,6 @@ app or per model. The following can: * ``search_form.html`` * ``submit_line.html`` -.. versionchanged:: 2.1 - - The ability to override the ``actions.html``, ``change_form_object_tools.html``, - ``change_list_object_tools.html``, ``change_list_results.html``, - ``date_hierarchy.html``, ``pagination.html``, ``prepopulated_fields_js.html``, - ``search_form.html``, and ``submit_line.html`` templates was added. - For those templates that cannot be overridden in this way, you may still override them for your entire project. Just place the new version in your ``templates/admin`` directory. This is particularly useful to create custom 404 @@ -2967,8 +2930,6 @@ put ``'django.contrib.admin.apps.SimpleAdminConfig'`` instead of Overriding the default admin site --------------------------------- -.. versionadded:: 2.1 - You can override the default ``django.contrib.admin.site`` by setting the :attr:`~.SimpleAdminConfig.default_site` attribute of a custom ``AppConfig`` to the dotted import path of either a ``AdminSite`` subclass or a callable that diff --git a/docs/ref/contrib/auth.txt b/docs/ref/contrib/auth.txt index efbffa62c2..9376ea6fcb 100644 --- a/docs/ref/contrib/auth.txt +++ b/docs/ref/contrib/auth.txt @@ -210,14 +210,6 @@ Methods :meth:`~django.contrib.auth.models.User.set_unusable_password()` has been called for this user. - .. versionchanged:: 2.1 - - In older versions, this also returns ``False`` if the password is - ``None`` or an empty string, or if the password uses a hasher - that's not in the :setting:`PASSWORD_HASHERS` setting. That - behavior is considered a bug as it prevents users with such - passwords from requesting a password reset. - .. method:: get_group_permissions(obj=None) Returns a set of permission strings that the user has, through their diff --git a/docs/ref/contrib/gis/functions.txt b/docs/ref/contrib/gis/functions.txt index 60476902bb..453c1385d5 100644 --- a/docs/ref/contrib/gis/functions.txt +++ b/docs/ref/contrib/gis/functions.txt @@ -283,8 +283,6 @@ representing the bounding box of the geometry. .. class:: ForcePolygonCW(expression, **extra) -.. versionadded:: 2.1 - *Availability*: `PostGIS <https://postgis.net/docs/ST_ForcePolygonCW.html>`__, SpatiaLite diff --git a/docs/ref/contrib/gis/geos.txt b/docs/ref/contrib/gis/geos.txt index c19a5ab05c..068fe7d006 100644 --- a/docs/ref/contrib/gis/geos.txt +++ b/docs/ref/contrib/gis/geos.txt @@ -487,8 +487,6 @@ Topological Methods .. method:: GEOSGeometry.buffer_with_style(width, quadsegs=8, end_cap_style=1, join_style=1, mitre_limit=5.0) - .. versionadded:: 2.1 - Same as :meth:`buffer`, but allows customizing the style of the buffer. * ``end_cap_style`` can be round (``1``), flat (``2``), or square (``3``). diff --git a/docs/ref/contrib/postgres/fields.txt b/docs/ref/contrib/postgres/fields.txt index 01d47af55b..11fcec664f 100644 --- a/docs/ref/contrib/postgres/fields.txt +++ b/docs/ref/contrib/postgres/fields.txt @@ -577,12 +577,6 @@ To query for missing keys, use the ``isnull`` lookup:: >>> Dog.objects.filter(data__owner__isnull=True) <QuerySet [<Dog: Shep>]> -.. versionchanged:: 2.1 - - In older versions, using ``None`` as a lookup value matches objects that - don't have the key rather than objects that have the key with a ``None`` - value. - .. warning:: Since any string could be a key in a JSON object, any lookup other than |
