check type instead of instance
This commit is contained in:
parent
d0ff662b05
commit
16b0094821
1 changed files with 1 additions and 1 deletions
|
|
@ -218,7 +218,7 @@ class BaseBackend(object):
|
|||
if not missing_fields:
|
||||
return obj
|
||||
|
||||
assert obj in self.OBJECTS, 'The object of type %s is not supported by the backend %s' % (type(obj), self)
|
||||
assert type(obj) in self.OBJECTS, 'The object of type %s is not supported by the backend %s' % (type(obj), self)
|
||||
|
||||
for key, value in self.OBJECTS.iteritems():
|
||||
if isinstance(obj, key):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue