from django import forms
from django.contrib.auth.forms import UserCreationForm
from .models import User, UserInfo


class UserForm(UserCreationForm):


    class Meta:
        model = UserInfo
        fields = ['username', 'first_name', 'last_name', 'age', 'gender',
            'contact', 'email', 'password1', 'password2']

b562028706fb79f75201bccf9b435d9f1a366b26
<mask token>

<mask token>


class UserForm(UserCreationForm):


    class Meta:
        model = UserInfo
        fields = ['username', 'first_name', 'last_name', 'age', 'gender',
            'contact', 'email', 'password1', 'password2']

from django import forms
from django.contrib.auth.forms import UserCreationForm
from .models import User, UserInfo


class UserForm(UserCreationForm):


    class Meta:
        model = UserInfo
        fields = ['username', 'first_name', 'last_name', 'age', 'gender',
            'contact', 'email', 'password1', 'password2']
