Skip to content

Commit e82e894

Browse files
committed
create user register form
1 parent bcacdda commit e82e894

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

config/users/forms.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
from django import forms
2+
from django.contrib.auth.models import User
3+
from django.contrib.auth.forms import UserCreationForm
4+
5+
class UserRegisterForm(UserCreationForm):
6+
email = forms.EmailField()
7+
8+
class Meta:
9+
model = User
10+
fields = ['username', 'email', 'password1', 'password2']

0 commit comments

Comments
 (0)