]> 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:44:55 +0000 (10:44 -0400)
commit4a51aec1f517f1896e964009d39f2eb3fefae3c8
tree7c4218f9f8d7ea7ec789bde35761918e2f0a757c
parent6e958acf49a606b176e635a216ace95813ffa6a6
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