]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
drat
authorMike Bayer <mike_mp@zzzcomputing.com>
Sun, 7 Aug 2011 17:37:40 +0000 (13:37 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sun, 7 Aug 2011 17:37:40 +0000 (13:37 -0400)
doc/build/orm/mapper_config.rst

index 5f816744867f29e2d324b009ee06cf84813703ce..fb9ad9299ffc057b9f70d8102610b890d454cbd4 100644 (file)
@@ -429,7 +429,7 @@ to add an additional property after the fact::
 
     User.address_count = column_property(
             select([func.count(Address.id)]).\
-                where(Address.user_id==id)
+                where(Address.user_id==User.id)
         ) 
 
 For many-to-many relationships, use :func:`.and_` to join the fields of the