from django import forms
from django.forms import ModelForm
from django.contrib.auth.forms import UserCreationForm, UserChangeForm
from django.contrib.auth.models import User
from login.models import UserProfile


class SignupForm(UserCreationForm):
    email = forms.EmailField(label='Email Adddress', required=True, )

    class Meta:
        model = User
        fields = ('username', 'email', 'password1', 'password2', )

class UserProfileChange(UserChangeForm):
    class Meta:
        model = User
        fields = ('username', 'email', 'first_name', 'last_name', 'password', )


        
class ProfilePic(ModelForm):
    class Meta:
        model = UserProfile
        fields = ['profile_pic', ]
        

345bd2331ecd22581a9f66baa09a510cd0292d2c
<mask token>


class UserProfileChange(UserChangeForm):


    class Meta:
        model = User
        fields = 'username', 'email', 'first_name', 'last_name', 'password'


class ProfilePic(ModelForm):


    class Meta:
        model = UserProfile
        fields = ['profile_pic']

<mask token>


class SignupForm(UserCreationForm):
    <mask token>


    class Meta:
        model = User
        fields = 'username', 'email', 'password1', 'password2'


class UserProfileChange(UserChangeForm):


    class Meta:
        model = User
        fields = 'username', 'email', 'first_name', 'last_name', 'password'


class ProfilePic(ModelForm):


    class Meta:
        model = UserProfile
        fields = ['profile_pic']

<mask token>


class SignupForm(UserCreationForm):
    email = forms.EmailField(label='Email Adddress', required=True)


    class Meta:
        model = User
        fields = 'username', 'email', 'password1', 'password2'


class UserProfileChange(UserChangeForm):


    class Meta:
        model = User
        fields = 'username', 'email', 'first_name', 'last_name', 'password'


class ProfilePic(ModelForm):


    class Meta:
        model = UserProfile
        fields = ['profile_pic']

from django import forms
from django.forms import ModelForm
from django.contrib.auth.forms import UserCreationForm, UserChangeForm
from django.contrib.auth.models import User
from login.models import UserProfile


class SignupForm(UserCreationForm):
    email = forms.EmailField(label='Email Adddress', required=True)


    class Meta:
        model = User
        fields = 'username', 'email', 'password1', 'password2'


class UserProfileChange(UserChangeForm):


    class Meta:
        model = User
        fields = 'username', 'email', 'first_name', 'last_name', 'password'


class ProfilePic(ModelForm):


    class Meta:
        model = UserProfile
        fields = ['profile_pic']

from django import forms
from django.forms import ModelForm
from django.contrib.auth.forms import UserCreationForm, UserChangeForm
from django.contrib.auth.models import User
from login.models import UserProfile


class SignupForm(UserCreationForm):
    email = forms.EmailField(label='Email Adddress', required=True, )

    class Meta:
        model = User
        fields = ('username', 'email', 'password1', 'password2', )

class UserProfileChange(UserChangeForm):
    class Meta:
        model = User
        fields = ('username', 'email', 'first_name', 'last_name', 'password', )


        
class ProfilePic(ModelForm):
    class Meta:
        model = UserProfile
        fields = ['profile_pic', ]
        
