@classmethod
  def is_first_login_ever(cls):
    return not UserProfile.objects.filter(creation_method=str(UserProfile.CreationMethod.EXTERNAL)).exists()
Return true if no external user has ever logged in to Desktop yet.
dataset/ETHPy150Open cloudera/hue/desktop/libs/liboauth/src/liboauth/backend.py/OAuthBackend.is_first_login_ever