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

class ProfileSignUpForm(UserCreationForm):
  first_name = forms.CharField(max_length=50, required=True)
  last_name = forms.CharField(max_length=50, required=True)
  email = forms.EmailField(max_length=254, help_text='Enter a valid email address')

  class Meta:
    model = Profile
    fields = [
      'username',
      'first_name',
      'last_name',
      'email',
      'password1',
      'password2'
    ]


class ProfileChangeForm(UserChangeForm):

  class Meta:
    model = Profile
    fields = ('username', 'email')
2823bcc5ff406cd43677529d38e7e532e099d828
<mask token>


class ProfileChangeForm(UserChangeForm):


    class Meta:
        model = Profile
        fields = 'username', 'email'

<mask token>


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


    class Meta:
        model = Profile
        fields = ['username', 'first_name', 'last_name', 'email',
            'password1', 'password2']


class ProfileChangeForm(UserChangeForm):


    class Meta:
        model = Profile
        fields = 'username', 'email'

<mask token>


class ProfileSignUpForm(UserCreationForm):
    first_name = forms.CharField(max_length=50, required=True)
    last_name = forms.CharField(max_length=50, required=True)
    email = forms.EmailField(max_length=254, help_text=
        'Enter a valid email address')


    class Meta:
        model = Profile
        fields = ['username', 'first_name', 'last_name', 'email',
            'password1', 'password2']


class ProfileChangeForm(UserChangeForm):


    class Meta:
        model = Profile
        fields = 'username', 'email'

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


class ProfileSignUpForm(UserCreationForm):
    first_name = forms.CharField(max_length=50, required=True)
    last_name = forms.CharField(max_length=50, required=True)
    email = forms.EmailField(max_length=254, help_text=
        'Enter a valid email address')


    class Meta:
        model = Profile
        fields = ['username', 'first_name', 'last_name', 'email',
            'password1', 'password2']


class ProfileChangeForm(UserChangeForm):


    class Meta:
        model = Profile
        fields = 'username', 'email'

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

class ProfileSignUpForm(UserCreationForm):
  first_name = forms.CharField(max_length=50, required=True)
  last_name = forms.CharField(max_length=50, required=True)
  email = forms.EmailField(max_length=254, help_text='Enter a valid email address')

  class Meta:
    model = Profile
    fields = [
      'username',
      'first_name',
      'last_name',
      'email',
      'password1',
      'password2'
    ]


class ProfileChangeForm(UserChangeForm):

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