'Ensure BooleanFields actually get bool values.  The Django MySQL
backend returns ints for BooleanFields, which is almost always not
a problem, but it can be annoying in certain situations.'

@classmethod
def _convert_booleans(cls, data):

    for field in cls._meta.fields:
        if ((type(field) == dbmodels.BooleanField) and (field.name in data)):
            data[field.name] = bool(data[field.name])
