diff options
| author | Loic Bistuer <loic.bistuer@sixmedia.com> | 2013-07-18 23:59:45 +0700 |
|---|---|---|
| committer | Loic Bistuer <loic.bistuer@sixmedia.com> | 2013-07-18 23:59:45 +0700 |
| commit | 3a0022918989edfcb8d73f484b1b900935300abe (patch) | |
| tree | c0095c077d7389ae6c419b138ba7af9b255beca5 | |
| parent | a3e7d73ed7d90d31de46c60d40424267f62e411c (diff) | |
Cleaned up UserAdmin.get_form() that worked around a bug fixed in 23e1b59.
Refs #18681.
| -rw-r--r-- | django/contrib/auth/admin.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/django/contrib/auth/admin.py b/django/contrib/auth/admin.py index 5a1db68613..ca660606e5 100644 --- a/django/contrib/auth/admin.py +++ b/django/contrib/auth/admin.py @@ -70,10 +70,7 @@ class UserAdmin(admin.ModelAdmin): """ 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) |
