'Handle bytearrays in python 3.1'

def __set__(self, instance, value):

    if (six.PY3 and isinstance(value, bytearray)):
        value = six.binary_type(value)
    return super(BinaryField, self).__set__(instance, value)
