Skip to content
Browse files

Fixed #8367 -- Pass the object to get_form from get_fieldsets in Mode…

…lAdmin. Thanks jarrow for catching this.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 324befc commit 58c579b0056bbc8e50cdc2436929fc9703bfcab5 @brosner brosner committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/contrib/admin/
2 django/contrib/admin/
@@ -247,7 +247,7 @@ def get_fieldsets(self, request, obj=None):
"Hook for specifying fieldsets for the add form."
if self.declared_fieldsets:
return self.declared_fieldsets
- form = self.get_form(request)
+ form = self.get_form(request, obj)
return [(None, {'fields': form.base_fields.keys()})]
def get_form(self, request, obj=None, **kwargs):

0 comments on commit 58c579b

Please sign in to comment.
Something went wrong with that request. Please try again.