Skip to content

Commit

Permalink
Changed RegistrationForm to CustomUserCreationForm
Browse files Browse the repository at this point in the history
This is the same form that admin page uses when creating users.
RegistrationForm is not affected by change in forms.py in commit:
9be07d3
and thereby did not get a sorted section list from previous change.
I do not see the diffrence in accont creation between the two forms.
  • Loading branch information
hato1883 committed Nov 1, 2023
1 parent 9be07d3 commit 1a9427c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/members/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from django.views.generic import CreateView

from members import views
from members.forms import RegistrationForm
from members.forms import CustomUserCreationForm

urlpatterns = [
re_path(r'^profile/$', views.ProfileView.as_view(), name='profile'),
Expand All @@ -14,7 +14,7 @@
),
re_path('^register/', CreateView.as_view(
template_name='members/register.html',
form_class=RegistrationForm,
form_class=CustomUserCreationForm,
success_url=reverse_lazy('login'),
), name='register'),

Expand Down

0 comments on commit 1a9427c

Please sign in to comment.