removed lockmode from get_by

This commit is contained in:
Mike Bayer
2006-09-11 03:17:25 +00:00
parent 5157ce1658
commit 8a3cfd2ddd
+1 -2
View 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: