You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
def contains(self, obj):
- return self._comparator.any(**{self.value_attr: obj})
+ # depending on list/scalar on both sides
+ return self._comparator._criterion_exists(getattr(self.target_class, self.value_attr).contains(obj))
+# return self._comparator.any(**{self.value_attr: obj})
the association proxy will need accessors that tell it what list/scalar type is both the "target" and "value", and all of these comparators must switch off of that.
Migrated issue, originally created by Michael Bayer (@zzzeek)
two tests expect an error condition to occur which fails here, but need this for the variety of scenarios:
The text was updated successfully, but these errors were encountered: