]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
should be 'where' not 'filter' #2546
authorDiana Clarke <diana.joan.clarke@gmail.com>
Mon, 19 Nov 2012 04:59:10 +0000 (23:59 -0500)
committerDiana Clarke <diana.joan.clarke@gmail.com>
Mon, 19 Nov 2012 04:59:10 +0000 (23:59 -0500)
lib/sqlalchemy/orm/query.py

index b129685a28a99b3e56ed749ce303879ee2843003..a34fd882a843446478ede527896421abb4c83563 100644 (file)
@@ -1515,7 +1515,7 @@ class Query(object):
         and :func:`.select` constructs, with either the one or two-argument forms::
 
             addresses_q = select([Address.user_id]).\\
-                            filter(Address.email_address.endswith("@bar.com")).\\
+                            where(Address.email_address.endswith("@bar.com")).\\
                             alias()
 
             q = session.query(User).\\