def get_user(self, username):
    "\n        Given the verified username, look up and return the\n        corresponding user account if it exists, or ``None`` if it\n        doesn't.\n\n        "
    User = get_user_model()
    try:
        user = User.objects.get(**{User.USERNAME_FIELD: username, 'is_active': False})
        return user
    except User.DoesNotExist:
        return None
Given the verified username, look up and return the
corresponding user account if it exists, or ``None`` if it
doesn't.
def get_user(self, username):
    "\n        Given the verified username, look up and return the\n        corresponding user account if it exists, or ``None`` if it\n        doesn't.\n\n        "
    User = get_user_model()
    try:
        user = User.objects.get(**{User.USERNAME_FIELD: username, 'is_active': False})
        return user
    except User.DoesNotExist:
        return None