Skip to content

"UserSocialAuth.user" must be a "MyUser" instance #631

@blackrosezy

Description

@blackrosezy

Hi,

I am using custom user model and keep getting the following error:

Django Version: 1.8.2
Exception Type: ValueError
Exception Value:    
Cannot assign "'38ce3451a9d68210ad038b09fb29b0df7b58e46a'": "UserSocialAuth.user" must be a "MyUser" instance.
Exception Location: C:\Users\Ohm\Desktop\app_virt\lib\site-packages\django\db\models\fields\related.py in __set__, line 627
Python Executable:  C:\Users\Ohm\Desktop\app_virt\Scripts\python.exe
Python Version: 2.7.9

My setttings in settings.py are:

AUTH_USER_MODEL = 'authentication.MyUser'

SOCIAL_AUTH_USER_MODEL = AUTH_USER_MODEL

Could somebody spot the issue? Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions