]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Add an init_scalar event for attributes
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 11 Jun 2015 03:38:15 +0000 (23:38 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 2 Jun 2016 18:41:31 +0000 (14:41 -0400)
commite28b44813721f258bf76fb7c85bf5559ecd219ec
tree7929c90ba8d19b75ca9b33a04e8b65254ccb0899
parent31699bd1866bbfc36f1501e5e1b54d3c06cf3b4c
Add an init_scalar event for attributes

This allows us to build default-setting recipes such
as one that allows us to actively read column-level
defaults.  An example suite is also added.

Change-Id: I7b022d52cc89526132d5bc4201ac27fea4cf088d
Fixes: #1311
doc/build/changelog/changelog_11.rst
doc/build/changelog/migration_11.rst
examples/custom_attributes/__init__.py
examples/custom_attributes/active_column_defaults.py [new file with mode: 0644]
lib/sqlalchemy/orm/attributes.py
lib/sqlalchemy/orm/events.py