Project_Camper/vagus/users/forms.py

20 lines
410 B
Python
Raw Normal View History

2020-12-07 21:41:55 +01:00
from django import forms
from django.contrib.auth.forms import UserCreationForm, UserChangeForm
from .models import Base_User
class CustomUserCreationForm(UserCreationForm):
class Meta(UserCreationForm):
model = Base_User
fields = ('email','password',)
class CustomUserChangeForm(UserChangeForm):
class Meta:
model = Base_User
fields = ('email','password',)