[Answered ]-Django Test Error When Using Custom User Model & django-allauth

1👍

Figured it out. It was the order that migrations are applied. In the migration that related to my custom user model I had to add a run_before attribute to my Migration class manually so that the django-allauth migrations would only run after the custom user model had been migrated to the test or development database.

run_before = [
    ('account', '0001_initial'),
]

Link to official docs for Controlling the order of migrations

Leave a comment