Replace 'User' with 'settings.AUTH_USER_MODEL'