mirror of
https://github.com/Balshgit/different
synced 2025-09-12 01:20:43 +03:00
19 lines
817 B
Python
19 lines
817 B
Python
from django import forms
|
|
from django.contrib.auth.forms import UserCreationForm
|
|
|
|
from server.apps.accounts.models import CustomUser
|
|
|
|
|
|
class CustomUserCreationForm(UserCreationForm):
|
|
# username = forms.CharField(label='Логин', widget=forms.TextInput(attrs={'class': 'form-input'}))
|
|
# email = forms.EmailField(label='Email', widget=forms.EmailInput(attrs={'class': 'form-input'}))
|
|
# password1 = forms.CharField(label='Пароль', widget=forms.PasswordInput(attrs={'class': 'form-input'}))
|
|
# password2 = forms.CharField(label='Повтор пароля',
|
|
# widget=forms.PasswordInput(attrs={'class': 'form-input'}))
|
|
|
|
class Meta:
|
|
model = CustomUser
|
|
fields = ('username', 'first_name', 'last_name', 'email', 'mobile', 'password1', 'password2')
|
|
|
|
|