diff options
| author | Nick Sandford <nick@sandford.id.au> | 2013-02-02 13:21:50 -0800 |
|---|---|---|
| committer | Julien Phalip <jphalip@gmail.com> | 2013-02-02 14:53:46 -0800 |
| commit | 0694d2196f0fadde37ff2d002a9a4a8edb3ca504 (patch) | |
| tree | 160b6d70460229ad7bd72dcde470e6620f1928c2 /docs | |
| parent | fdaaa241715ece2f706041faf16fb282e2782593 (diff) | |
Fixed #19445 -- Skip admin fieldsets validation when the ModelAdmin.get_form() method is overridden.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/contrib/admin/index.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/ref/contrib/admin/index.txt b/docs/ref/contrib/admin/index.txt index 1c19499d2a..1b47fa8828 100644 --- a/docs/ref/contrib/admin/index.txt +++ b/docs/ref/contrib/admin/index.txt @@ -1070,6 +1070,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 |
