Call change_with selection method with an instance

issue8293
This commit is contained in:
Cédric Krier committed 2019-08-07 17:12:33 +02:00
1 parent c1a59b07e7
commit 1f2256d545
1 file changed
+1 -2
+1 -2
View File
@@ -201,8 +201,7 @@ class Model(URLMixin, PoolBase, metaclass=ModelMeta):
change_with = props.get('selection_change_with')
if change_with:
selection = getattr(
Relation, props['selection'])(
dict((p, None) for p in change_with))
Relation(), props['selection'])()
else:
selection = getattr(
Relation, props['selection'])()