

def is_installed(self):
    'Checks whether django-watson is installed.'
    cursor = connection.cursor()
    cursor.execute("\n            SELECT attname FROM pg_attribute\n            WHERE attrelid = (SELECT oid FROM pg_class WHERE relname = 'watson_searchentry') AND attname = 'search_tsv';\n        ")
    return bool(self.fetchall())

dataset/ETHPy150Open etianen/django-watson/src/watson/backends.py PostgresSearchBackend.is_installed/VarMisuse@30/111 `cursor`->`self`