def fulltext_search_sql(self, field_name): return ("CONTAINS(%s, %%s) > 0" % field_name) def field_cast_sql(self, db_type): return "%s" def patch(): """call me, call me""" from django.db.backends.oracle.base import DatabaseOperations DatabaseOperations.fulltext_search_sql = fulltext_search_sql DatabaseOperations.field_cast_sql = field_cast_sql