def is_installed(self):
        cursor = connection.cursor()
        cursor.execute("""
            SELECT attname FROM pg_attribute
            WHERE attrelid = (SELECT oid FROM pg_class WHERE relname = 'watson_searchentry') AND attname = 'search_tsv';
        """)
        return bool(cursor.fetchall())
Checks whether django-watson is installed.
dataset/ETHPy150Open etianen/django-watson/src/watson/backends.py/PostgresSearchBackend.is_installed