Skip to content

Commit

Permalink
fix: user creation form (#746)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasvinclav authored Sep 16, 2024
1 parent 5a77b44 commit 1006523
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/unfold/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,13 @@
from django.contrib.auth.forms import (
AdminPasswordChangeForm as BaseAdminPasswordChangeForm,
)

try:
from django.contrib.auth.forms import AdminUserCreationForm as BaseUserCreationForm
except ImportError:
from django.contrib.auth.forms import UserCreationForm as BaseUserCreationForm
from django.contrib.auth.forms import ReadOnlyPasswordHashWidget
from django.contrib.auth.forms import UserChangeForm as BaseUserChangeForm
from django.contrib.auth.forms import UserCreationForm as BaseUserCreationForm
from django.http import HttpRequest
from django.utils.safestring import mark_safe
from django.utils.translation import gettext_lazy as _
Expand Down

0 comments on commit 1006523

Please sign in to comment.