from django import forms
from django.contrib.auth.forms import UserCreationForm,  UserChangeForm
from .models import CustomUser


class CustomUserCreationForm(UserCreationForm):
    gender = forms.CharField(max_length=6, required=True, help_text='Enter assigned gender at birth (Male or Female).')

    class Meta:
        model = CustomUser
        fields = ('username', 'gender')

class CustomUserChangeForm(UserChangeForm):

    class Meta:
        model = CustomUser
        fields = ('username', 'gender')
7ceb531ee1c116155b2c7a40573a6266f4c14dc3
<mask token>


class CustomUserChangeForm(UserChangeForm):


    class Meta:
        model = CustomUser
        fields = 'username', 'gender'

<mask token>


class CustomUserCreationForm(UserCreationForm):
    <mask token>


    class Meta:
        model = CustomUser
        fields = 'username', 'gender'


class CustomUserChangeForm(UserChangeForm):


    class Meta:
        model = CustomUser
        fields = 'username', 'gender'

<mask token>


class CustomUserCreationForm(UserCreationForm):
    gender = forms.CharField(max_length=6, required=True, help_text=
        'Enter assigned gender at birth (Male or Female).')


    class Meta:
        model = CustomUser
        fields = 'username', 'gender'


class CustomUserChangeForm(UserChangeForm):


    class Meta:
        model = CustomUser
        fields = 'username', 'gender'

from django import forms
from django.contrib.auth.forms import UserCreationForm, UserChangeForm
from .models import CustomUser


class CustomUserCreationForm(UserCreationForm):
    gender = forms.CharField(max_length=6, required=True, help_text=
        'Enter assigned gender at birth (Male or Female).')


    class Meta:
        model = CustomUser
        fields = 'username', 'gender'


class CustomUserChangeForm(UserChangeForm):


    class Meta:
        model = CustomUser
        fields = 'username', 'gender'

from django import forms
from django.contrib.auth.forms import UserCreationForm,  UserChangeForm
from .models import CustomUser


class CustomUserCreationForm(UserCreationForm):
    gender = forms.CharField(max_length=6, required=True, help_text='Enter assigned gender at birth (Male or Female).')

    class Meta:
        model = CustomUser
        fields = ('username', 'gender')

class CustomUserChangeForm(UserChangeForm):

    class Meta:
        model = CustomUser
        fields = ('username', 'gender')