- assigned issue to
cant use non-hashable mapper args with declarative
Issue #2091
resolved
really surprising nobody has reported this. the "column_copies.get(v,v)" line means you can't use exclude_properties, include_properties, anything else list based (well you could pass a tuple). the check there should test for hashable first before doing that check. wacky
Comments (6)
-
reporter -
reporter class MyClass(Base): __tablename__ = 'foo' type = Column(...) # ... __mapper_args__ = {'exclude_properties':['b']('a',), 'polymorphic_on':type}
probably limit the test to "polymorphic_on", "version_id_col" for now, + tests in test/ext/test_declarative.py
-
Account Deleted - attached 2091.patch
Added check to limit column set to only 'version_id_col', 'polymorphic_on'
-
Account Deleted 2091.patch from Toby Ho.
-
reporter - changed status to resolved
-
reporter - removed milestone
Removing milestone: 0.6.7 (automated comment)
- Log in to comment