django-oursql
django-oursql copied to clipboard
mysql_oursql.standard.operations.DatabaseOperations
The Django version of this class for mysql (vers. 1.3, django.db.backends.mysql.base.DatabaseOperations) defines the compiler module as:
class DatabaseOperations(BaseDatabaseOperations):
compiler_module = "django.db.backends.mysql.compiler"
...
This hook simply converts BooleanFields that are tinyints from 0 or 1 to False or True, but because mysql_oursql rewrites from BaseDatabaseOperations it is lost.
I was going to submit a pull request to just add that compiler_module line to mysql_oursql's DatabaseOperations class, but because you didn't just use the expected django DatabaseOperations I was wondering if you were trying to move away from some of that default functionality.