diff options
Diffstat (limited to 'lib/sqlalchemy/orm/attributes.py')
| -rw-r--r-- | lib/sqlalchemy/orm/attributes.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/sqlalchemy/orm/attributes.py b/lib/sqlalchemy/orm/attributes.py index efbc15d7f..dfc415d2a 100644 --- a/lib/sqlalchemy/orm/attributes.py +++ b/lib/sqlalchemy/orm/attributes.py @@ -1200,10 +1200,11 @@ class _ClassInstrumentationAdapter(ClassManager): def has_state(self, instance): try: state = self._get_state(instance) - return True except exc.NO_STATE: return False - + else: + return True + def state_getter(self): return self._get_state |
