Browse files

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

…1b59.

Refs #18681.
  • Loading branch information...
1 parent a3e7d73 commit 3a0022918989edfcb8d73f484b1b900935300abe @loic loic committed Jul 18, 2013
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)

0 comments on commit 3a00229

Please sign in to comment.