mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Removed versionadded/changed annotations for 5.2.
This commit is contained in:
@@ -52,10 +52,6 @@ Templates ``:template:`path/to/template.html```
|
||||
Each of these support custom link text with the format
|
||||
``:role:`link text <link>```. For example, ``:tag:`block <built_in-block>```.
|
||||
|
||||
.. versionchanged:: 5.2
|
||||
|
||||
Support for custom link text was added.
|
||||
|
||||
.. _admindocs-model-reference:
|
||||
|
||||
Model reference
|
||||
@@ -89,11 +85,6 @@ A model with useful documentation might look like this::
|
||||
"""Makes the blog entry live on the site."""
|
||||
...
|
||||
|
||||
.. versionchanged:: 5.2
|
||||
|
||||
Access was restricted to only allow users with model view or change
|
||||
permissions.
|
||||
|
||||
View reference
|
||||
==============
|
||||
|
||||
|
||||
@@ -2874,8 +2874,6 @@ is linked to the document in ``{% block dark-mode-vars %}``.
|
||||
``extrabody`` block
|
||||
===================
|
||||
|
||||
.. versionadded:: 5.2
|
||||
|
||||
You can add custom HTML, JavaScript, or other content to appear just before the
|
||||
closing ``</body>`` tag of templates that extend ``admin/base.html`` by
|
||||
extending the ``extrabody`` block. For example, if you want an alert to appear
|
||||
|
||||
@@ -206,10 +206,6 @@ Methods
|
||||
If ``obj`` is passed in, only returns the user permissions for this
|
||||
specific object.
|
||||
|
||||
.. versionchanged:: 5.2
|
||||
|
||||
``aget_user_permissions()`` method was added.
|
||||
|
||||
.. method:: get_group_permissions(obj=None)
|
||||
.. method:: aget_group_permissions(obj=None)
|
||||
|
||||
@@ -221,10 +217,6 @@ Methods
|
||||
If ``obj`` is passed in, only returns the group permissions for
|
||||
this specific object.
|
||||
|
||||
.. versionchanged:: 5.2
|
||||
|
||||
``aget_group_permissions()`` method was added.
|
||||
|
||||
.. method:: get_all_permissions(obj=None)
|
||||
.. method:: aget_all_permissions(obj=None)
|
||||
|
||||
@@ -236,10 +228,6 @@ Methods
|
||||
If ``obj`` is passed in, only returns the permissions for this
|
||||
specific object.
|
||||
|
||||
.. versionchanged:: 5.2
|
||||
|
||||
``aget_all_permissions()`` method was added.
|
||||
|
||||
.. method:: has_perm(perm, obj=None)
|
||||
.. method:: ahas_perm(perm, obj=None)
|
||||
|
||||
@@ -254,10 +242,6 @@ Methods
|
||||
If ``obj`` is passed in, this method won't check for a permission for
|
||||
the model, but for this specific object.
|
||||
|
||||
.. versionchanged:: 5.2
|
||||
|
||||
``ahas_perm()`` method was added.
|
||||
|
||||
.. method:: has_perms(perm_list, obj=None)
|
||||
.. method:: ahas_perms(perm_list, obj=None)
|
||||
|
||||
@@ -272,10 +256,6 @@ Methods
|
||||
If ``obj`` is passed in, this method won't check for permissions for
|
||||
the model, but for the specific object.
|
||||
|
||||
.. versionchanged:: 5.2
|
||||
|
||||
``ahas_perms()`` method was added.
|
||||
|
||||
.. method:: has_module_perms(package_name)
|
||||
.. method:: ahas_module_perms(package_name)
|
||||
|
||||
@@ -286,10 +266,6 @@ Methods
|
||||
always return ``False``. For an active superuser, this method will
|
||||
always return ``True``.
|
||||
|
||||
.. versionchanged:: 5.2
|
||||
|
||||
``ahas_module_perms()`` method was added.
|
||||
|
||||
.. method:: email_user(subject, message, from_email=None, **kwargs)
|
||||
|
||||
Sends an email to the user. If ``from_email`` is ``None``, Django uses
|
||||
@@ -334,10 +310,6 @@ Manager methods
|
||||
See :ref:`Creating users <topics-auth-creating-users>` for example
|
||||
usage.
|
||||
|
||||
.. versionchanged:: 5.2
|
||||
|
||||
``acreate_user()`` method was added.
|
||||
|
||||
.. method:: create_superuser(username, email=None, password=None, **extra_fields)
|
||||
.. method:: acreate_superuser(username, email=None, password=None, **extra_fields)
|
||||
|
||||
@@ -346,10 +318,6 @@ Manager methods
|
||||
Same as :meth:`create_user`, but sets :attr:`~models.User.is_staff` and
|
||||
:attr:`~models.User.is_superuser` to ``True``.
|
||||
|
||||
.. versionchanged:: 5.2
|
||||
|
||||
``acreate_superuser()`` method was added.
|
||||
|
||||
.. method:: with_perm(perm, is_active=True, include_superusers=True, backend=None, obj=None)
|
||||
|
||||
Returns users that have the given permission ``perm`` either in the
|
||||
@@ -566,10 +534,6 @@ The following backends are available in :mod:`django.contrib.auth.backends`:
|
||||
|
||||
Returns an empty set.
|
||||
|
||||
.. versionchanged:: 5.2
|
||||
|
||||
``aget_user_permissions()`` function was added.
|
||||
|
||||
.. method:: get_group_permissions(user_obj, obj=None)
|
||||
.. method:: aget_group_permissions(user_obj, obj=None)
|
||||
|
||||
@@ -577,10 +541,6 @@ The following backends are available in :mod:`django.contrib.auth.backends`:
|
||||
|
||||
Returns an empty set.
|
||||
|
||||
.. versionchanged:: 5.2
|
||||
|
||||
``aget_group_permissions()`` function was added.
|
||||
|
||||
.. method:: get_all_permissions(user_obj, obj=None)
|
||||
.. method:: aget_all_permissions(user_obj, obj=None)
|
||||
|
||||
@@ -589,10 +549,6 @@ The following backends are available in :mod:`django.contrib.auth.backends`:
|
||||
Uses :meth:`get_user_permissions` and :meth:`get_group_permissions` to
|
||||
get the set of permission strings the ``user_obj`` has.
|
||||
|
||||
.. versionchanged:: 5.2
|
||||
|
||||
``aget_all_permissions()`` function was added.
|
||||
|
||||
.. method:: has_perm(user_obj, perm, obj=None)
|
||||
.. method:: ahas_perm(user_obj, perm, obj=None)
|
||||
|
||||
@@ -601,10 +557,6 @@ The following backends are available in :mod:`django.contrib.auth.backends`:
|
||||
Uses :meth:`get_all_permissions` to check if ``user_obj`` has the
|
||||
permission string ``perm``.
|
||||
|
||||
.. versionchanged:: 5.2
|
||||
|
||||
``ahas_perm()`` function was added.
|
||||
|
||||
.. class:: ModelBackend
|
||||
|
||||
This is the default authentication backend used by Django. It
|
||||
@@ -644,10 +596,6 @@ The following backends are available in :mod:`django.contrib.auth.backends`:
|
||||
if it wasn't provided to :func:`~django.contrib.auth.authenticate`
|
||||
(which passes it on to the backend).
|
||||
|
||||
.. versionchanged:: 5.2
|
||||
|
||||
``aauthenticate()`` function was added.
|
||||
|
||||
.. method:: get_user_permissions(user_obj, obj=None)
|
||||
.. method:: aget_user_permissions(user_obj, obj=None)
|
||||
|
||||
@@ -658,10 +606,6 @@ The following backends are available in :mod:`django.contrib.auth.backends`:
|
||||
:attr:`~django.contrib.auth.models.AbstractBaseUser.is_anonymous` or
|
||||
:attr:`~django.contrib.auth.models.CustomUser.is_active` is ``False``.
|
||||
|
||||
.. versionchanged:: 5.2
|
||||
|
||||
``aget_user_permissions()`` function was added.
|
||||
|
||||
.. method:: get_group_permissions(user_obj, obj=None)
|
||||
.. method:: aget_group_permissions(user_obj, obj=None)
|
||||
|
||||
@@ -672,10 +616,6 @@ The following backends are available in :mod:`django.contrib.auth.backends`:
|
||||
:attr:`~django.contrib.auth.models.AbstractBaseUser.is_anonymous` or
|
||||
:attr:`~django.contrib.auth.models.CustomUser.is_active` is ``False``.
|
||||
|
||||
.. versionchanged:: 5.2
|
||||
|
||||
``aget_group_permissions()`` function was added.
|
||||
|
||||
.. method:: get_all_permissions(user_obj, obj=None)
|
||||
.. method:: aget_all_permissions(user_obj, obj=None)
|
||||
|
||||
@@ -686,10 +626,6 @@ The following backends are available in :mod:`django.contrib.auth.backends`:
|
||||
:attr:`~django.contrib.auth.models.AbstractBaseUser.is_anonymous` or
|
||||
:attr:`~django.contrib.auth.models.CustomUser.is_active` is ``False``.
|
||||
|
||||
.. versionchanged:: 5.2
|
||||
|
||||
``aget_all_permissions()`` function was added.
|
||||
|
||||
.. method:: has_perm(user_obj, perm, obj=None)
|
||||
.. method:: ahas_perm(user_obj, perm, obj=None)
|
||||
|
||||
@@ -699,10 +635,6 @@ The following backends are available in :mod:`django.contrib.auth.backends`:
|
||||
permission string ``perm``. Returns ``False`` if the user is not
|
||||
:attr:`~django.contrib.auth.models.CustomUser.is_active`.
|
||||
|
||||
.. versionchanged:: 5.2
|
||||
|
||||
``ahas_perm()`` function was added.
|
||||
|
||||
.. method:: has_module_perms(user_obj, app_label)
|
||||
.. method:: ahas_module_perms(user_obj, app_label)
|
||||
|
||||
@@ -711,10 +643,6 @@ The following backends are available in :mod:`django.contrib.auth.backends`:
|
||||
Returns whether the ``user_obj`` has any permissions on the app
|
||||
``app_label``.
|
||||
|
||||
.. versionchanged:: 5.2
|
||||
|
||||
``ahas_module_perms()`` function was added.
|
||||
|
||||
.. method:: user_can_authenticate()
|
||||
|
||||
Returns whether the user is allowed to authenticate. To match the
|
||||
@@ -786,10 +714,6 @@ The following backends are available in :mod:`django.contrib.auth.backends`:
|
||||
if it wasn't provided to :func:`~django.contrib.auth.authenticate`
|
||||
(which passes it on to the backend).
|
||||
|
||||
.. versionchanged:: 5.2
|
||||
|
||||
``aauthenticate()`` function was added.
|
||||
|
||||
.. method:: clean_username(username)
|
||||
|
||||
Performs any cleaning on the ``username`` (e.g. stripping LDAP DN
|
||||
@@ -818,10 +742,6 @@ The following backends are available in :mod:`django.contrib.auth.backends`:
|
||||
if it wasn't provided to :func:`~django.contrib.auth.authenticate`
|
||||
(which passes it on to the backend).
|
||||
|
||||
.. versionchanged:: 5.2
|
||||
|
||||
``aconfigure_user()`` function was added.
|
||||
|
||||
.. method:: user_can_authenticate()
|
||||
|
||||
Returns whether the user is allowed to authenticate. This method
|
||||
|
||||
@@ -600,21 +600,15 @@ coordinate transformation:
|
||||
|
||||
.. attribute:: has_curve
|
||||
|
||||
.. versionadded:: 5.2
|
||||
|
||||
A boolean indicating if this geometry is or contains a curve geometry.
|
||||
|
||||
.. method:: get_linear_geometry
|
||||
|
||||
.. versionadded:: 5.2
|
||||
|
||||
Returns a linear version of the geometry. If no conversion can be made, the
|
||||
original geometry is returned.
|
||||
|
||||
.. method:: get_curve_geometry
|
||||
|
||||
.. versionadded:: 5.2
|
||||
|
||||
Returns a curved version of the geometry. If no conversion can be made, the
|
||||
original geometry is returned.
|
||||
|
||||
|
||||
@@ -205,10 +205,6 @@ MySQL ``MBRCoveredBy(poly, geom)``
|
||||
SpatiaLite ``CoveredBy(poly, geom)``
|
||||
========== =============================
|
||||
|
||||
.. versionchanged:: 5.2
|
||||
|
||||
MySQL support was added.
|
||||
|
||||
.. versionchanged:: 6.0
|
||||
|
||||
MariaDB 12.0.1+ support was added.
|
||||
@@ -237,10 +233,6 @@ MySQL ``MBRCovers(poly, geom)``
|
||||
SpatiaLite ``Covers(poly, geom)``
|
||||
========== ==========================
|
||||
|
||||
.. versionchanged:: 5.2
|
||||
|
||||
MySQL support was added.
|
||||
|
||||
.. fieldlookup:: crosses
|
||||
|
||||
``crosses``
|
||||
|
||||
@@ -42,8 +42,6 @@ General-purpose aggregation functions
|
||||
|
||||
.. attribute:: order_by
|
||||
|
||||
.. versionadded:: 5.2
|
||||
|
||||
An optional string of a field name (with an optional ``"-"`` prefix
|
||||
which indicates descending order) or an expression (or a tuple or list
|
||||
of strings and/or expressions) that specifies the ordering of the
|
||||
@@ -149,8 +147,6 @@ General-purpose aggregation functions
|
||||
|
||||
.. attribute:: order_by
|
||||
|
||||
.. versionadded:: 5.2
|
||||
|
||||
An optional string of a field name (with an optional ``"-"`` prefix
|
||||
which indicates descending order) or an expression (or a tuple or list
|
||||
of strings and/or expressions) that specifies the ordering of the
|
||||
@@ -210,8 +206,6 @@ General-purpose aggregation functions
|
||||
|
||||
.. attribute:: order_by
|
||||
|
||||
.. versionadded:: 5.2
|
||||
|
||||
An optional string of a field name (with an optional ``"-"`` prefix
|
||||
which indicates descending order) or an expression (or a tuple or list
|
||||
of strings and/or expressions) that specifies the ordering of the
|
||||
|
||||
@@ -995,10 +995,6 @@ They share this interface:
|
||||
XML documents. If your content has some of them, you might encounter a
|
||||
:exc:`ValueError` when producing the feed.
|
||||
|
||||
.. versionchanged:: 5.2
|
||||
|
||||
The ``stylesheets`` argument was added.
|
||||
|
||||
:meth:`.SyndicationFeed.add_item`
|
||||
Add an item to the feed with the given parameters.
|
||||
|
||||
@@ -1131,8 +1127,6 @@ above example should demonstrate the basic idea.
|
||||
Feed stylesheets
|
||||
----------------
|
||||
|
||||
.. versionadded:: 5.2
|
||||
|
||||
If you wish to have your RSS feed render nicely in a browser, you will need to
|
||||
provide styling information for the XML file, typically in XSLT_ or CSS
|
||||
formats.
|
||||
|
||||
Reference in New Issue
Block a user