From e18bd68dbc64dfe08ae0fbb54591d5c8f7e456eb Mon Sep 17 00:00:00 2001 From: Nick Sandford Date: Sat, 2 Feb 2013 13:21:50 -0800 Subject: [1.5.x] Fixed #19445 -- Skip admin fieldsets validation when the ModelAdmin.get_form() method is overridden. Backport of 0694d2196f0fad --- docs/ref/contrib/admin/index.txt | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'docs/ref') 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 ``
`` on the + admin form page, as described above in the :attr:`ModelAdmin.fieldsets` section. + .. method:: ModelAdmin.get_list_filter(self, request) .. versionadded:: 1.5 -- cgit v1.3