initial commit
This commit is contained in:
15
apps/users/services/forms.py
Normal file
15
apps/users/services/forms.py
Normal file
@@ -0,0 +1,15 @@
|
||||
from django.contrib.auth.forms import UserChangeForm, UserCreationForm
|
||||
|
||||
from apps.users.models import User
|
||||
|
||||
|
||||
class CustomUserCreationForm(UserCreationForm):
|
||||
class Meta:
|
||||
model = User
|
||||
fields = ("mobile", "first_name", "last_name")
|
||||
|
||||
|
||||
class CustomUserChangeForm(UserChangeForm):
|
||||
class Meta:
|
||||
model = User
|
||||
fields = ("mobile", "is_verified")
|
||||
Reference in New Issue
Block a user