added user management system
This commit is contained in:
parent
0b31a83f83
commit
8e855e0748
16 changed files with 446 additions and 3 deletions
11
invsystem/user_manager/forms.py
Normal file
11
invsystem/user_manager/forms.py
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
from django.contrib.auth.forms import UserCreationForm
|
||||
from django.forms import CharField
|
||||
from django.contrib.auth.models import User
|
||||
|
||||
|
||||
class SignUpForm(UserCreationForm):
|
||||
username = CharField(required=True)
|
||||
|
||||
class Meta:
|
||||
model = User
|
||||
fields = ('username', 'first_name', 'last_name', 'email', 'password1', 'password2', )
|
||||
Loading…
Add table
Add a link
Reference in a new issue