diff options
Diffstat (limited to 'backend/articles/forms.py')
| -rw-r--r-- | backend/articles/forms.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/backend/articles/forms.py b/backend/articles/forms.py new file mode 100644 index 0000000..63444a1 --- /dev/null +++ b/backend/articles/forms.py @@ -0,0 +1,15 @@ +from django import forms +from django.contrib.auth.forms import UserCreationForm, UserChangeForm +from .models import User + + +class CustomUserCreationForm(UserCreationForm): + class Meta(UserCreationForm): + model = User + fields = ('username', 'email') + + +class CustomUserChangeForm(UserChangeForm): + class Meta: + model = User + fields = ('username', 'email') |