djblets.db.backends.mysql.base¶
Database backend for MySQL with backported fixes.
- class DatabaseWrapper(*args, **kwargs)[source]¶
Bases:
objectDatabase backend for MySQL.
This is a specialized version of the standard Django MySQL database backend which adds backported compatibility fixes from newer versions of Django.
Currently, this fixes an issue where contents going into a
BinaryFieldcould trigger a MySQL warning due to the binary contents being validated as Unicode. This bug was fixed in Django 1.10.5, but is present on older versions.To use this backend, just use
djblets.db.backends.mysqlas the database backend instead ofdjango.db.backends.mysqlinsettings.py.