File tree 1 file changed +11
-2
lines changed
1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change
1
+ from allauth .account .forms import SignupForm
2
+ from allauth .socialaccount .forms import SignupForm as SocialSignupForm
1
3
from captcha .fields import CaptchaField
2
4
from django import forms
3
5
from django .contrib .admin .widgets import FilteredSelectMultiple
4
6
from django .contrib .auth .forms import (
5
7
PasswordChangeForm ,
6
8
SetPasswordForm ,
7
9
UserChangeForm ,
8
- UserCreationForm ,
9
10
)
10
11
from django .core .exceptions import ValidationError
11
12
12
13
from .models import UserGroup
13
14
from .models import myuser as OepUser
14
15
15
16
16
- class CreateUserForm (UserCreationForm ):
17
+ class UserSocialSignupForm (SocialSignupForm ):
18
+ """
19
+ Renders the form when user has signed up using social accounts.
20
+ Default fields will be added automatically.
21
+ See UserSignupForm otherwise.
22
+ """
23
+
24
+
25
+ class CreateUserForm (SignupForm ):
17
26
captcha = CaptchaField ()
18
27
19
28
class Meta :
You can’t perform that action at this time.
0 commit comments