]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
removed lockmode from get_by
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 11 Sep 2006 03:17:25 +0000 (03:17 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 11 Sep 2006 03:17:25 +0000 (03:17 +0000)
lib/sqlalchemy/orm/query.py

index 13092b44d8335be9b4d33ac5909a92f64dd47c35..0a6a050055826bce72f4bf87c8e33d61505345b9 100644 (file)
@@ -68,8 +68,7 @@ class Query(object):
 
         e.g.   u = usermapper.get_by(user_name = 'fred')
         """
-        lockmode=params.pop('lockmode', self.lockmode)
-        x = self.select_whereclause(self.join_by(*args, **params), lockmode=lockmode, limit=1)
+        x = self.select_whereclause(self.join_by(*args, **params), limit=1)
         if x:
             return x[0]
         else: