summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorNick Sandford <nick@sandford.id.au>2013-02-02 13:21:50 -0800
committerJulien Phalip <jphalip@gmail.com>2013-02-02 14:55:59 -0800
commite18bd68dbc64dfe08ae0fbb54591d5c8f7e456eb (patch)
tree3dbee34af7f41b33f342663317af7acec8b3affc /docs
parentf28fbe7314712d3e594a0f6509361378162cc7ea (diff)
[1.5.x] Fixed #19445 -- Skip admin fieldsets validation when the ModelAdmin.get_form() method is overridden.
Backport of 0694d2196f0fad
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/contrib/admin/index.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/ref/contrib/admin/index.txt b/docs/ref/contrib/admin/index.txt
index 1414f19e48..3c05130161 100644
--- a/docs/ref/contrib/admin/index.txt
+++ b/docs/ref/contrib/admin/index.txt
@@ -1096,6 +1096,13 @@ templates used by the :class:`ModelAdmin` views:
changelist that will be linked to the change view, as described in the
:attr:`ModelAdmin.list_display_links` section.
+.. method:: ModelAdmin.get_fieldsets(self, request, obj=None)
+
+ The ``get_fieldsets`` method is given the ``HttpRequest`` and the ``obj``
+ being edited (or ``None`` on an add form) and is expected to return a list
+ of two-tuples, in which each two-tuple represents a ``<fieldset>`` on the
+ admin form page, as described above in the :attr:`ModelAdmin.fieldsets` section.
+
.. method:: ModelAdmin.get_list_filter(self, request)
.. versionadded:: 1.5