@staticmethod
    def _is_does_not_exist(node):
        if (isinstance(node, (Name, Getattr)) and
                'DoesNotExist' in node.as_string()):
            return True
        return False
dataset/ETHPy150Open geerk/django_linter/django_linter/checkers/views.py/ViewsChecker._is_does_not_exist/original