commit | 518aba895999ca4ed117cd5f4cf30971ca1ecb9e | [log] [tgz] |
---|---|---|
author | Srikanth Vavilapalli <srikanth.vavilapalli@ericsson.com> | Mon Mar 13 23:45:56 2017 +0000 |
committer | Srikanth Vavilapalli <srikanth.vavilapalli@ericsson.com> | Mon Mar 13 23:46:07 2017 +0000 |
tree | 762a506394fe2ec2f1053a461ccd61028e0d6898 | |
parent | bb3aaafdb79e00102219af0ff2bdec994cc531aa [diff] |
FIX: for is_instance exception in new_base implementation Change-Id: I191d1113b1fc43335767673efc9ec634406561af
diff --git a/xos/synchronizers/new_base/djangoaccessor.py b/xos/synchronizers/new_base/djangoaccessor.py index 66ded70..759ba2b 100644 --- a/xos/synchronizers/new_base/djangoaccessor.py +++ b/xos/synchronizers/new_base/djangoaccessor.py
@@ -73,7 +73,7 @@ def is_type(self, obj, name): return type(obj) == self.get_model_class(name) - def is_type(self, obj, name): + def is_instance(self, obj, name): return isinstance(obj, self.get_model_class(name))