[Sqlalchemy-tickets] Issue #3048: Validator methods are not called for synonyms and inherited colum
Brought to you by:
zzzeek
|
From: Dariusz G. <iss...@bi...> - 2014-05-11 21:16:06
|
New issue 3048: Validator methods are not called for synonyms and inherited columns https://bitbucket.org/zzzeek/sqlalchemy/issue/3048/validator-methods-are-not-called-for Dariusz Górecki: Consider following example of joined-table inheritance: class Parent(DeclarativeBase): # ... parent_column = Column(String(255)) class Child(Parent): # ... child_column = synonym('parent_column') @validates('child_column') # @validates('parent_column') also does not work def validator(self, name, value): # not called at all raise ValueError() The `validator` method is never called |