The updates for the customer dashboard cum accounts

This commit is contained in:
Vivek
2025-12-09 03:59:57 +05:30
parent 08a89a1212
commit 24355ecdf5
38 changed files with 1057 additions and 16 deletions

View File

@@ -10,6 +10,11 @@ User = get_user_model()
class UserForm(forms.ModelForm):
full_name = forms.CharField(
max_length=150,
required=True,
label="Full Name"
)
password = forms.CharField(
widget=forms.PasswordInput,
label="Password"
@@ -39,7 +44,7 @@ class UserForm(forms.ModelForm):
class Meta:
model = User
fields = ["username", "email", "phone_number", "role", "password", "confirm_password"]
fields = ["username","full_name", "email", "phone_number", "role", "password", "confirm_password"]
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)