summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Urlichs <matthias@urlichs.de>2014-05-11 16:26:05 +0200
committerMatthias Urlichs <matthias@urlichs.de>2014-05-11 16:54:46 +0200
commitb385301343136bb5a3585785611adfc1d3ac5984 (patch)
treef87bd17adb5fe00d3bf50d54614f4fce4131d06b
parent55eacc8dbea3c3f98197bde9034fd6558fb2bc09 (diff)
downloadsqlalchemy-pr/90.tar.gz
Clarify that an instance's "load" event is also called when it is createdpr/90pr/89
-rw-r--r--lib/sqlalchemy/orm/events.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/sqlalchemy/orm/events.py b/lib/sqlalchemy/orm/events.py
index 6bc6b17ff..81d2e35de 100644
--- a/lib/sqlalchemy/orm/events.py
+++ b/lib/sqlalchemy/orm/events.py
@@ -236,8 +236,9 @@ class InstanceEvents(event.Events):
``__new__``, and after initial attribute population has
occurred.
- This typically occurs when the instance is created based on
- incoming result rows, and is only called once for that
+ This typically occurs when the instance is created, either
+ based on incoming result rows or by adding a new instance
+ object to the database. It is only called once for that
instance's lifetime.
Note that during a result-row load, this method is called upon