djangonauts/djorm-ext-pgfulltext — pull request #40 by linuxlewis (2014-10-16 01:06:04+00:00)
Title: Fix Python3 Support

This PR fixes 2 errors on python 3.4.1

- NameError: name 'unicode' is not defined
```python
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"
```python
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
```