From: Mike Bayer Date: Sun, 7 Aug 2011 17:37:40 +0000 (-0400) Subject: drat X-Git-Tag: rel_0_7_3~84 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b1b6fa66b87ce2b44b97325f4ba343039073debf;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git drat --- diff --git a/doc/build/orm/mapper_config.rst b/doc/build/orm/mapper_config.rst index 5f81674486..fb9ad9299f 100644 --- a/doc/build/orm/mapper_config.rst +++ b/doc/build/orm/mapper_config.rst @@ -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