You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
449 B
Python

from django import forms
from .models import *
class CustomLoginForm(forms.Form):
username = forms.CharField(label='Username', max_length=150)
password = forms.CharField(label='Password', widget=forms.PasswordInput)
class SignUpForm(forms.ModelForm):
class Meta:
model = CustomerProfile
fields = ['first_name', 'last_name', 'email', 'password', 'mobile_number', 'status', 'reference', 'personal_website', 'business']