Use get_user_model and settings.AUTH_USER_MODEL instead of importing it directly.