def as_sql(self, qn, connection):
lhs, lhs_params = qn.compile(self.lhs)
rhs, rhs_params = self.process_rhs(qn, connection)
> if type(rhs_params) in [str, unicode]:
E NameError: name 'unicode' is not defined
../../../.virtualenvs/lovely-django/lib/python3.4/site-packages/djorm_pgfulltext/fields.py:64: NameError
django.db.utils.ProgrammingError: syntax error in tsquery: "'programmer'::bytea"
def execute(self, sql, params=None):
self.db.validate_no_broken_transaction()
self.db.set_dirty()
with self.db.wrap_database_errors:
if params is None:
return self.cursor.execute(sql)
else:
> return self.cursor.execute(sql, params)
E django.db.utils.ProgrammingError: syntax error in tsquery: "'programmer'::bytea"
../../../.virtualenvs/lovely-django/lib/python3.4/site-packages/django/db/backends/utils.py:65: ProgrammingError
This PR fixes 2 errors on python 3.4.1