'This particular override stops us sending DEFAULTs for BooleanField.'

def _field_sanity(self, field):

    if (isinstance(field, models.BooleanField) and field.has_default()):
        field.default = int(field.to_python(field.get_default()))
    if isinstance(field, (models.CharField, models.TextField)):
        field.null = field.empty_strings_allowed
    return field
