Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Cleaned up UserAdmin.get_form() that worked around a bug fixed in 23e…

…1b59.

Refs #18681.
  • Loading branch information...
commit 3a0022918989edfcb8d73f484b1b900935300abe 1 parent a3e7d73
@loic loic authored
Showing with 1 addition and 4 deletions.
  1. +1 −4 django/contrib/auth/admin.py
View
5 django/contrib/auth/admin.py
@@ -70,10 +70,7 @@ def get_form(self, request, obj=None, **kwargs):
"""
defaults = {}
if obj is None:
- defaults.update({
- 'form': self.add_form,
- 'fields': admin.util.flatten_fieldsets(self.add_fieldsets),
- })
+ defaults['form'] = self.add_form
defaults.update(kwargs)
return super(UserAdmin, self).get_form(request, obj, **defaults)
Please sign in to comment.
Something went wrong with that request. Please try again.