<gh_stars>1-10
from django import forms
from django.contrib.auth.forms import UserCreationForm
from .models import User
class SignupForm(UserCreationForm):
    class Meta:
        model = User
        fields = ("email", "phone", "password1", "<PASSWORD>")

class PersonalInfoForm(forms.ModelForm):
    class Meta:
        model = User
        fields = ("email", "phone", "first_name", "last_name", "avatar")
        
        widgets = {
            'avatar': forms.FileInput()
        }

from django import forms
from django.contrib.auth.forms import UserCreationForm
from .models import User
class SignupForm(UserCreationForm):
    class Meta:
        model = User
        fields = ("email", "phone", "password1", "<PASSWORD>")

class PersonalInfoForm(forms.ModelForm):
    class Meta:
        model = User
        fields = ("email", "phone", "first_name", "last_name", "avatar")
        
        widgets = {
            'avatar': forms.FileInput()
        }