Support MultiSelection in MultiValue field

issue11730
review427811003
(grafted from bd9ad6eedf5c1f4dc135563fce5fff34999ee2ac)

--HG--
branch : 6.0
This commit is contained in:
José Antonio Díaz committed 2022-10-15 22:08:25 +02:00
1 parent 253b0b8563
commit 2bf0540551
1 file changed
+1 -1
+1 -1
View File
@@ -60,7 +60,7 @@ class MultiValueMixin(object):
return str(value)
return value.id
elif isinstance(value, (list, tuple)):
return [r.id for r in value]
return tuple(r.id if isinstance(r, Model) else r for r in value)
else:
return value