]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Corrected typo in the mapper docs. Fixes #1159.
authorMichael Trier <mtrier@gmail.com>
Thu, 28 Aug 2008 14:21:07 +0000 (14:21 +0000)
committerMichael Trier <mtrier@gmail.com>
Thu, 28 Aug 2008 14:21:07 +0000 (14:21 +0000)
doc/build/content/metadata.txt

index 26eab259419335b644fbd039909099b1d0c13988..27079bf28eec7bf1dbf3188e119c3bf457857072 100644 (file)
@@ -328,7 +328,7 @@ Similarly, the "onupdate" keyword does the same thing for update statements:
         Column('id', Integer, primary_key=True),
     
         # define 'last_updated' to be populated with datetime.now()
-        Column('last_updated', DateTime, onupdate=datetime.now),
+        Column('last_updated', DateTime, onupdate=datetime.datetime.now),
     )
 
 #### Pre-executed and Inline SQL Expressions {@name=sqlexpression}