diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2021-09-16 07:43:34 +0200 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2021-09-20 21:23:01 +0200 |
| commit | 97237ad3feed80407ed1884ea84cf00fd9fea367 (patch) | |
| tree | d087502fab09167246a610d7987d135c59288403 /docs/ref/contrib/admin | |
| parent | 810bca5a1ae33a9c8b54a2a516aa5bb8ec013c3f (diff) | |
Removed versionadded/changed annotations for 3.2.
Diffstat (limited to 'docs/ref/contrib/admin')
| -rw-r--r-- | docs/ref/contrib/admin/actions.txt | 16 | ||||
| -rw-r--r-- | docs/ref/contrib/admin/index.txt | 55 |
2 files changed, 0 insertions, 71 deletions
diff --git a/docs/ref/contrib/admin/actions.txt b/docs/ref/contrib/admin/actions.txt index 650eda9b4f..da60bc3bbe 100644 --- a/docs/ref/contrib/admin/actions.txt +++ b/docs/ref/contrib/admin/actions.txt @@ -119,13 +119,6 @@ function:: provide human-readable descriptions for callback functions registered there, too. -.. versionchanged:: 3.2 - - The ``description`` argument to the :func:`~django.contrib.admin.action` - decorator is equivalent to setting the ``short_description`` attribute on - the action function directly in previous versions. Setting the attribute - directly is still supported for backward compatibility. - Adding actions to the :class:`ModelAdmin` ----------------------------------------- @@ -419,20 +412,11 @@ For example:: codename = get_permission_codename('publish', opts) return request.user.has_perm('%s.%s' % (opts.app_label, codename)) -.. versionchanged:: 3.2 - - The ``permissions`` argument to the :func:`~django.contrib.admin.action` - decorator is equivalent to setting the ``allowed_permissions`` attribute on - the action function directly in previous versions. Setting the attribute - directly is still supported for backward compatibility. - The ``action`` decorator ======================== .. function:: action(*, permissions=None, description=None) - .. versionadded:: 3.2 - This decorator can be used for setting specific attributes on custom action functions that can be used with :attr:`~django.contrib.admin.ModelAdmin.actions`:: diff --git a/docs/ref/contrib/admin/index.txt b/docs/ref/contrib/admin/index.txt index f77273625c..91f55628fd 100644 --- a/docs/ref/contrib/admin/index.txt +++ b/docs/ref/contrib/admin/index.txt @@ -254,14 +254,6 @@ subclass:: def view_birth_date(self, obj): return obj.birth_date - .. versionchanged:: 3.2 - - The ``empty_value`` argument to the - :func:`~django.contrib.admin.display` decorator is equivalent to - setting the ``empty_value_display`` attribute on the display function - directly in previous versions. Setting the attribute directly is still - supported for backward compatibility. - .. attribute:: ModelAdmin.exclude This attribute, if given, should be a list of field names to exclude from @@ -645,14 +637,6 @@ subclass:: :func:`~django.contrib.admin.display` decorator and passing the ``description`` argument. - .. versionchanged:: 3.2 - - The ``description`` argument to the - :func:`~django.contrib.admin.display` decorator is equivalent to - setting the ``short_description`` attribute on the display function - directly in previous versions. Setting the attribute directly is - still supported for backward compatibility. - * If the value of a field is ``None``, an empty string, or an iterable without elements, Django will display ``-`` (a dash). You can override this with :attr:`AdminSite.empty_value_display`:: @@ -675,14 +659,6 @@ subclass:: def birth_date_view(self, obj): return obj.birth_date - .. versionchanged:: 3.2 - - The ``empty_value`` argument to the - :func:`~django.contrib.admin.display` decorator is equivalent to - setting the ``empty_value_display`` attribute on the display function - directly in previous versions. Setting the attribute directly is - still supported for backward compatibility. - * If the string given is a method of the model, ``ModelAdmin`` or a callable that returns ``True``, ``False``, or ``None``, Django will display a pretty "yes", "no", or "unknown" icon if you wrap the method @@ -703,14 +679,6 @@ subclass:: class PersonAdmin(admin.ModelAdmin): list_display = ('name', 'born_in_fifties') - .. versionchanged:: 3.2 - - The ``boolean`` argument to the - :func:`~django.contrib.admin.display` decorator is equivalent to - setting the ``boolean`` attribute on the display function directly in - previous versions. Setting the attribute directly is still supported - for backward compatibility. - * The ``__str__()`` method is just as valid in ``list_display`` as any other model method, so it's perfectly OK to do this:: @@ -782,14 +750,6 @@ subclass:: def full_name(self): return self.first_name + ' ' + self.last_name - .. versionchanged:: 3.2 - - The ``ordering`` argument to the - :func:`~django.contrib.admin.display` decorator is equivalent to - setting the ``admin_order_field`` attribute on the display function - directly in previous versions. Setting the attribute directly is - still supported for backward compatibility. - * Elements of ``list_display`` can also be properties:: class Person(models.Model): @@ -1145,11 +1105,6 @@ subclass:: ``prepopulated_fields`` doesn't accept ``DateTimeField``, ``ForeignKey``, ``OneToOneField``, and ``ManyToManyField`` fields. - .. versionchanged:: 3.2 - - In older versions, various English stop words are removed from - generated values. - .. attribute:: ModelAdmin.preserve_filters By default, applied filters are preserved on the list view after creating, @@ -1377,10 +1332,6 @@ subclass:: :meth:`ModelAdmin.get_search_results` to provide additional or alternate search behavior. - .. versionchanged:: 3.2 - - Support for searching against quoted phrases with spaces was added. - .. attribute:: ModelAdmin.search_help_text .. versionadded:: 4.0 @@ -2877,8 +2828,6 @@ creating your own ``AdminSite`` instance (see below), and changing the Theming support =============== -.. versionadded:: 3.2 - The admin uses CSS variables to define colors. This allows changing colors without having to override many individual CSS rules. For example, if you preferred purple instead of blue you could add a ``admin/base.html`` template @@ -2982,8 +2931,6 @@ Templates can override or extend base admin templates as described in .. attribute:: AdminSite.final_catch_all_view - .. versionadded:: 3.2 - A boolean value that determines whether to add a final catch-all view to the admin that redirects unauthenticated users to the login page. By default, it is set to ``True``. @@ -3422,8 +3369,6 @@ The ``display`` decorator .. function:: display(*, boolean=None, ordering=None, description=None, empty_value=None) - .. versionadded:: 3.2 - This decorator can be used for setting specific attributes on custom display functions that can be used with :attr:`~django.contrib.admin.ModelAdmin.list_display` or |
