Commit a6463ebc authored by Élie Bouttier's avatar Élie Bouttier
Browse files

UserAdmin: add_form = UserCreationForm

parent 8a110f21
......@@ -176,11 +176,7 @@ class UserAdmin(AdtSearchMixin, AuthUserAdmin):
inlines = ()
return [inline(self.model, self.admin_site) for inline in inlines]
def get_form(self, request, obj=None, **kwargs):
if obj:
return super().get_form(request, obj, **kwargs)
return UserCreationForm
add_form = UserCreationForm
def get_fieldsets(self, request, obj=None):
if obj:
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment