This commit is contained in:
Vivek P Prakash
2025-11-27 11:53:46 +05:30
commit aa40080012
50 changed files with 1135 additions and 0 deletions

12
accounts/forms.py Normal file
View File

@@ -0,0 +1,12 @@
from django import forms
from django.contrib.auth.forms import UserCreationForm
from .models import User
class UserForm(UserCreationForm):
class Meta:
model = User
fields = ('username','email','phone_number','role','is_staff','is_customer','is_user')
from django.contrib.auth.forms import AuthenticationForm
class LoginForm(AuthenticationForm):
pass