<filename>user/forms.py
from django.contrib.auth.forms import UserCreationForm

from user.models import CustomUser


class CustomUserCreationForm(UserCreationForm):

    class Meta:
        model = CustomUser
        fields = ["username", "<PASSWORD>", "<PASSWORD>"]

<filename>user/forms.py
from django.contrib.auth.forms import UserCreationForm

from user.models import CustomUser


class CustomUserCreationForm(UserCreationForm):

    class Meta:
        model = CustomUser
        fields = ["username", "<PASSWORD>", "<PASSWORD>"]
