# users/forms.py
from django import forms
from django.contrib.auth.forms import UserCreationForm, UserChangeForm,PasswordResetForm
from .models import CustomUser

class CustomUserCreationForm(UserCreationForm):

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

class CustomUserChangeForm(UserChangeForm):

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

class CustomPasswordResetForm(PasswordResetForm):

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