You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recently discovered django-guest-user as an updated version of the django lazy user library. I'd love to see more documentation about integrating with allauth.
I have a customized signup form inherited from the allauth.account.forms.SignupForm and a customized User model.
My sign up form doesn't work with django-guest-user as it expects a UserCreationForm to convert a guest user to a real user.
My solution is to create a new form and copy all the existing sign up fields over.
class GuestUserSignupForm(UserCreationForm):
class Meta:
model = User
fields = ["username", "password1", "password2", ...]
first_name = forms.CharField(max_length=30, label=_("First Name"))
last_name = forms.CharField(max_length=30, label=_("Last Name"))
# other user signup fields ...
I wonder if there's better way to implement this.
The text was updated successfully, but these errors were encountered:
I recently discovered django-guest-user as an updated version of the django lazy user library. I'd love to see more documentation about integrating with allauth.
I have a customized signup form inherited from the allauth.account.forms.SignupForm and a customized User model.
My sign up form doesn't work with django-guest-user as it expects a UserCreationForm to convert a guest user to a real user.
The difference is that the allauth SignupForm's
save
function needs arequest
parameter that the django-guest-user view doesn't provide.My solution is to create a new form and copy all the existing sign up fields over.
I wonder if there's better way to implement this.
The text was updated successfully, but these errors were encountered: