Coverage for users\forms.py: 100%

Shortcuts on this page

r m x   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

11 statements  

1from django import forms 

2from django.contrib.auth.forms import ( 

3 UserChangeForm, 

4 UserCreationForm 

5) 

6from .models import CustomUser 

7 

8 

9class CustomUserCreationForm(UserCreationForm): 

10 class Meta: 

11 model = CustomUser 

12 fields = ('email', ) 

13 

14 

15 

16 

17class CustomUserChangeForm(UserChangeForm): 

18 class Meta: 

19 model = CustomUser 

20 fields = UserChangeForm.Meta.fields