]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Clarify init_scalar event use case
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 6 Sep 2018 14:44:09 +0000 (10:44 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 6 Sep 2018 14:45:02 +0000 (10:45 -0400)
commit2734fa55c846288d6ed61254fe745538c6f5261c
tree7084789b7b057fc2915b49cb10e9dd499f077807
parent1351fa138673d93c81c5c44f28711a684c9da8b5
Clarify init_scalar event use case

Since I didn't even realize what this was for when reading the docs,
make it clearer that this is to mirror a Column default and remove
the extra verbiage about the mechanics of INSERTs.

Change-Id: Id2c6a29800f7b723573610e4707aec7e6ea38f5f
(cherry picked from commit 71b01adc7b31baab7bbcf40123633b87ee53bf64)
examples/custom_attributes/active_column_defaults.py
lib/sqlalchemy/orm/events.py