django-user-accounts
django-user-accounts copied to clipboard
Creating User account in admin does not create EmailAddress
I am using django-user-accounts 1.2.0.
Steps to reproduce:
- Use the Django admin to create a django.contrib.auth.models.User
- An
accounts.models.Accountis created for the new User - An
accounts.models.EmailAddressis not created, so tasks like resetting the user's password fail.
This might be the same issue as reported in #72, but I am not certain.
I think creating a new User in the admin should also create an Account and EmailAddress. If not, I think the documentation should be updated to explain why this is not possible.
When you create a user through Django admin, you first off only give it username and password, then the user is created, then you can edit other fields, including email. As the user has no email when it's created, the post_save signal in accounts does not create an EmailAddress model. So this is the same as #72, I think, yes, and the problem still remains.