display backend repr when NotSupportedObject

This commit is contained in:
Christophe Benz 2010-07-19 17:09:51 +02:00
commit 1b42d2dc3a

View file

@ -179,4 +179,4 @@ class BaseBackend(object):
if isinstance(obj, key):
return value(self, obj, fields)
raise NotSupportedObject('The object of type %s is not supported by this backend' % type(obj))
raise NotSupportedObject('The object of type %s is not supported by the backend %s' % (type(obj), self))