from django import forms

from django.contrib.auth.forms import UserCreationForm, UserChangeForm
from django_registration.forms import RegistrationForm

from .models import User


class UserForm(RegistrationForm):
    class Meta(RegistrationForm.Meta):
        model = User
        fields = ("username", "password1", "password2", "first_name", "last_name")


class UserCreationForm(UserCreationForm):
    class Meta(UserCreationForm.Meta):
        model = User
        fields = ("first_name", "last_name")


class UserChangeForm(UserChangeForm):
    class Meta:
        model = User
        fields = ("first_name", "last_name")

c96c352bd7fc3e88924c1207fcd2a7bb4c745b5e
<mask token>


class UserChangeForm(UserChangeForm):


    class Meta:
        model = User
        fields = 'first_name', 'last_name'

<mask token>


class UserCreationForm(UserCreationForm):


    class Meta(UserCreationForm.Meta):
        model = User
        fields = 'first_name', 'last_name'


class UserChangeForm(UserChangeForm):


    class Meta:
        model = User
        fields = 'first_name', 'last_name'

<mask token>


class UserForm(RegistrationForm):


    class Meta(RegistrationForm.Meta):
        model = User
        fields = ('username', 'password1', 'password2', 'first_name',
            'last_name')


class UserCreationForm(UserCreationForm):


    class Meta(UserCreationForm.Meta):
        model = User
        fields = 'first_name', 'last_name'


class UserChangeForm(UserChangeForm):


    class Meta:
        model = User
        fields = 'first_name', 'last_name'

from django import forms
from django.contrib.auth.forms import UserCreationForm, UserChangeForm
from django_registration.forms import RegistrationForm
from .models import User


class UserForm(RegistrationForm):


    class Meta(RegistrationForm.Meta):
        model = User
        fields = ('username', 'password1', 'password2', 'first_name',
            'last_name')


class UserCreationForm(UserCreationForm):


    class Meta(UserCreationForm.Meta):
        model = User
        fields = 'first_name', 'last_name'


class UserChangeForm(UserChangeForm):


    class Meta:
        model = User
        fields = 'first_name', 'last_name'

from django import forms

from django.contrib.auth.forms import UserCreationForm, UserChangeForm
from django_registration.forms import RegistrationForm

from .models import User


class UserForm(RegistrationForm):
    class Meta(RegistrationForm.Meta):
        model = User
        fields = ("username", "password1", "password2", "first_name", "last_name")


class UserCreationForm(UserCreationForm):
    class Meta(UserCreationForm.Meta):
        model = User
        fields = ("first_name", "last_name")


class UserChangeForm(UserChangeForm):
    class Meta:
        model = User
        fields = ("first_name", "last_name")
