django allauth custom signup form to assign different groups
问题 I have two types of users in the system, I want to assign the appropriate group at the time of signing up. Referring to How to customize user profile when using django-allauth, I thought I can override the Signup form and do something like: class CustomSignupForm(forms.Form): login_widget = forms.TextInput(attrs={'type': 'email', 'placeholder': _('email'), 'autofocus': 'autofocus', 'class': 'form-control' }) email = forms.EmailField(label='Email', widget=login_widget) password = PasswordField