Commit 9b21507f authored by Nicolas Wavrant's avatar Nicolas Wavrant

Accessor/Base.py: add exception for data type values

parent 99deec6c
......@@ -92,7 +92,7 @@ class Setter(Method):
# Modify the property
if value in self._null:
setattr(instance, self._storage_id, None)
elif not isinstance(value, builtin_type_tuple):
elif not isinstance(value, builtin_type_tuple) and self._property_type != 'data':
raise TypeError('Class Objects can\'t be used as property values')
elif self._property_type == 'content':
# A file object should be provided
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment