Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undocumented assumption about custom user models #241

Open
kokolem opened this issue Jul 30, 2023 · 1 comment
Open

Undocumented assumption about custom user models #241

kokolem opened this issue Jul 30, 2023 · 1 comment

Comments

@kokolem
Copy link

kokolem commented Jul 30, 2023

The two-step activation workflow's RegistrationView expects the user object to have a email_user method:

user.email_user(subject, message, settings.DEFAULT_FROM_EMAIL)
This is true for custom user models that inherit from AbstractUser, but not for those that inherit from AbstractBaseUser. I belive this should be documented in Compatibility of the built-in workflows with custom user models section.

@ubernostrum
Copy link
Owner

As noted over in #234, I'm already planning to do a new major version which will focus on the custom-user handling. So I'll look into fixing the documentation for now, but also the main focus is going to be on making the whole thing less brittle.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants