You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
The Django version of this class for mysql (vers. 1.3, django.db.backends.mysql.base.DatabaseOperations) defines the compiler module as:
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.
The text was updated successfully, but these errors were encountered: