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?
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:
Is there any solution for this?