django-pyodbc-azure icon indicating copy to clipboard operation
django-pyodbc-azure copied to clipboard

Add a converter for boolean values

Open marcogiusti opened this issue 6 years ago • 1 comments

If a numeric column (tinyint in my case) is mapped as a BooleanField, Django sometime report a wrong value that is always True. This because it checks for the type (...value is False...). The driver should handle this case and convert from a numeric value to a boolean.

marcogiusti avatar Feb 13 '19 15:02 marcogiusti

This is hopefully fixed in https://github.com/ESSolutions/django-mssql-backend/pull/17

OskarPersson avatar Nov 16 '19 11:11 OskarPersson