Skip to content

Commit

Permalink
Fix signup form
Browse files Browse the repository at this point in the history
  • Loading branch information
jochenklar committed Sep 5, 2024
1 parent 7d1134c commit 6f3546f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion rdmo/accounts/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from django.utils.translation import gettext_lazy as _

from allauth.account.forms import LoginForm as AllauthLoginForm
from allauth.account.forms import SignupForm as AllauthSignupForm

from .models import AdditionalField, AdditionalFieldValue, ConsentFieldValue

Expand Down Expand Up @@ -81,7 +82,7 @@ def __init__(self, *args, **kwargs):
password_field.help_text = None


class SignupForm(ProfileForm):
class SignupForm(AllauthSignupForm, ProfileForm):

use_required_attribute = False

Expand Down
3 changes: 2 additions & 1 deletion rdmo/core/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@
ACCOUNT_ADAPTER = 'rdmo.accounts.adapter.AccountAdapter'
ACCOUNT_FORMS = {
'login': 'rdmo.accounts.forms.LoginForm',
'signup': 'rdmo.accounts.forms.SignupForm',
'signup': 'rdmo.accounts.forms.SignupForm'

}
ACCOUNT_USER_DISPLAY = 'rdmo.accounts.utils.get_full_name'
ACCOUNT_EMAIL_REQUIRED = True
Expand Down

0 comments on commit 6f3546f

Please sign in to comment.