diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-09-08 13:01:43 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-09-08 13:01:43 -0400 |
commit | e4996d4f5432657639798c1b286ee811a36e2a10 (patch) | |
tree | 6634899eb260fe7265808296c0899b2279ccb691 /lib/sqlalchemy/orm/attributes.py | |
parent | 390207e533854ab0c3abe6b7ebc45fae1b14eaba (diff) | |
download | sqlalchemy-e4996d4f5432657639798c1b286ee811a36e2a10.tar.gz |
- check for None linker...
Diffstat (limited to 'lib/sqlalchemy/orm/attributes.py')
-rw-r--r-- | lib/sqlalchemy/orm/attributes.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/orm/attributes.py b/lib/sqlalchemy/orm/attributes.py index 459a52539..2b4c3ec75 100644 --- a/lib/sqlalchemy/orm/attributes.py +++ b/lib/sqlalchemy/orm/attributes.py @@ -863,7 +863,7 @@ class CollectionAttributeImpl(AttributeImpl): self.copy = copy_function self.collection_factory = typecallable - if hasattr(self.collection_factory, "_sa_linker"): + if getattr(self.collection_factory, "_sa_linker", None): @event.listens_for(self, "init_collection") def link(target, collection, collection_adapter): |