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
Hello, first of all, thank you for maintaining this package.
I found an error related to django-allauth after running the migrations generated after installing django-auto-prefetch.
The following is the error I got, which was preventing users from logging in.
After some digging I noticed that django-auto-prefetch changed the manager for the User Model from UserManager() to Manager(), which does not have the attribute get_by_natural_key
Python Version
3.9
Django Version
4.0.7
Package Version
1.3.0
Description
Hello, first of all, thank you for maintaining this package.
I found an error related to django-allauth after running the migrations generated after installing django-auto-prefetch.
The following is the error I got, which was preventing users from logging in.
After some digging I noticed that django-auto-prefetch changed the manager for the User Model from
UserManager()
toManager()
, which does not have the attribute get_by_natural_keyTo resolve this issue I had to explicitly add
UserManager()
as the manager for my User model as follows:This change allowed the next migration files to be generated the way they were supposed to:
I think it would be helpful to add some sort of note letting others know how this might affect their User models.
Thank you!
The text was updated successfully, but these errors were encountered: