Would make sense to use `getattr(settings, 'AUTH_USER_MODEL', 'auth.User')` here instead of the branching.