summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
authorZach Borboa <zachborboa@gmail.com>2016-09-29 02:55:10 -0700
committerTim Graham <timograham@gmail.com>2016-10-07 18:49:28 -0400
commitbf91be83d56d70181de807a5e8d22679cf63a52f (patch)
treec12c401aa3cbe6b4bd9fd58d97af4bdc20f3bf94 /docs/ref
parentc60feb6999f83bfd1fdabff01f0dd4a26d72e158 (diff)
Fixed #24941 -- Added ModelAdmin.get_exclude().
Thanks Ola Sitarska for the initial patch.
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/contrib/admin/index.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/ref/contrib/admin/index.txt b/docs/ref/contrib/admin/index.txt
index 845f467b77..4d3ab6dc1f 100644
--- a/docs/ref/contrib/admin/index.txt
+++ b/docs/ref/contrib/admin/index.txt
@@ -1459,6 +1459,14 @@ templates used by the :class:`ModelAdmin` views:
names on the changelist that will be linked to the change view, as described
in the :attr:`ModelAdmin.list_display_links` section.
+.. method:: ModelAdmin.get_exclude(request, obj=None)
+
+ .. versionadded:: 1.11
+
+ The ``get_exclude`` method is given the ``HttpRequest`` and the ``obj``
+ being edited (or ``None`` on an add form) and is expected to return a list
+ of fields, as described in :attr:`ModelAdmin.exclude`.
+
.. method:: ModelAdmin.get_fields(request, obj=None)
The ``get_fields`` method is given the ``HttpRequest`` and the ``obj``