from django import forms
from .models import MyUser
from django.contrib.auth.forms import UserCreationForm


class UserRegisterForm(UserCreationForm):
    email = forms.EmailField()
    address = forms.CharField(max_length=300)
    first_name = forms.CharField(max_length=100)
    last_name = forms.CharField(max_length=100)
    phone_no = forms.CharField(max_length=12)


    class Meta:
        model = MyUser
        fields = ['username', 'email', 'first_name', 'last_name', 'address',
            'phone_no']

6833a6d5af8c960cfdf1f8c8e25cf7f5ba548e33
<mask token>

<mask token>


class UserRegisterForm(UserCreationForm):
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>


    class Meta:
        model = MyUser
        fields = ['username', 'email', 'first_name', 'last_name', 'address',
            'phone_no']

<mask token>


class UserRegisterForm(UserCreationForm):
    email = forms.EmailField()
    address = forms.CharField(max_length=300)
    first_name = forms.CharField(max_length=100)
    last_name = forms.CharField(max_length=100)
    phone_no = forms.CharField(max_length=12)


    class Meta:
        model = MyUser
        fields = ['username', 'email', 'first_name', 'last_name', 'address',
            'phone_no']

from django import forms
from .models import MyUser
from django.contrib.auth.forms import UserCreationForm


class UserRegisterForm(UserCreationForm):
    email = forms.EmailField()
    address = forms.CharField(max_length=300)
    first_name = forms.CharField(max_length=100)
    last_name = forms.CharField(max_length=100)
    phone_no = forms.CharField(max_length=12)


    class Meta:
        model = MyUser
        fields = ['username', 'email', 'first_name', 'last_name', 'address',
            'phone_no']
