Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from .models import CustomUser
- from django.contrib.auth.forms import UserCreationForm, UserChangeForm
- class CustomUserCreationForm(UserCreationForm):
- class Meta:
- model = CustomUser
- fields = ('email', "full_name", "password1", "password2")
- class ProfileForm(UserChangeForm):
- class Meta:
- model = CustomUser
- fields = (
- "email",
- "full_name",
- "profile_pic",
- "location",
- "birth_date",
- "bio",
- "linkedin",
- "facebook",
- "twitter",
- "instagram",
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement