added missing **kwargs

This commit is contained in:
Mike Bayer
2008-08-08 14:31:09 +00:00
parent c73391c34c
commit cdd673f2e4
+1 -1
View 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)