def find_invited_user(email, default=None):
 User = apps.get_model(settings.AUTH_USER_MODEL)
 try:
  return User.objects.get(email=email)
 except User.DoesNotExist:
  return default

def find_invited_user ( email , default = None ) : User = apps . get_model ( settings . AUTH_USER_MODEL ) try : return User . objects . get ( email = email ) except User . DoesNotExist : return default
check if the invited user is already a registered .