Project_Camper/vagus/users/forms.py
Krzysztof Bonecki 21be6f6d0e commit 2
2020-12-07 21:41:55 +01:00

20 lines
410 B
Python

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',)