Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Field defines a relation with the model 'auth.User', which has been swapped out. #5

Open
MahdiJafari1 opened this issue Oct 31, 2023 · 1 comment

Comments

@MahdiJafari1
Copy link

I have defined a custom user model in my settings. See the settings below.

Settings:
AUTH_USER_MODEL = 'accounts.User'

And when I want to migrate, I get this error:

SystemCheckError: System check identified some issues:

ERRORS:
admin_two_factor.TwoFactorVerification.user: (fields.E301) Field defines a relation with the model 'auth.User', which has been swapped out.
	HINT: Update the relation to point at 'settings.AUTH_USER_MODEL'.

Is there any solution for this?

@MungaiVic
Copy link

I'm also looking for a solution to this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants