]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
added missing **kwargs
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 8 Aug 2008 14:31:09 +0000 (14:31 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 8 Aug 2008 14:31:09 +0000 (14:31 +0000)
lib/sqlalchemy/orm/properties.py

index 5eec3ce3f52e7a44255cc82251da37159ea45289..75b9835bb1f13ed538660aa66ae2a5885c74dcc9 100644 (file)
@@ -391,7 +391,7 @@ class PropertyLoader(StrategizedProperty):
                 raise sa_exc.InvalidRequestError("'has()' not implemented for collections.  Use any().")
             return self._criterion_exists(criterion, **kwargs)
 
-        def contains(self, other):
+        def contains(self, other, **kwargs):
             if not self.prop.uselist:
                 raise sa_exc.InvalidRequestError("'contains' not implemented for scalar attributes.  Use ==")
             clause = self.prop._optimized_compare(other)