Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #1372 from loic/admin

Cleaned up UserAdmin.get_form() that worked around a bug fixed in 23e1b59.
  • Loading branch information...
commit 9a2715da8b4c196e1cccd3241f6f585da53359a6 2 parents dce8945 + 3a00229
@timgraham timgraham 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.