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
@ariovistus, the issue is caused by an import ordering problem, in your example code you call urlresolvers.reverse which will load example/urls.py, which will trigger an admin.autodiscover() call, which will load social/apps/django_app/default/admin.py, which will try to load your custom user model which will fail to load your user model.
I've included a setting to avoid this issue (not released yet), you can define SOCIAL_AUTH_ADMIN_USER_SEARCH_FIELDS = ['first_name', 'last_name', 'email', 'username'] (the setting value is a list of fields of your custom user), this will avoid the import order problem.
When I change the models.py in the django example to this:
the following exception gets thrown:
In a vanilla django app with above models.py, this does not happen.
The text was updated successfully, but these errors were encountered: