Display the actual wrong ids in domain rule error message

Closes #12907
(grafted from 4ebe825f8202d35630c08b0fbd5d1c93bd9124c3)

--HG--
branch : 6.0
This commit is contained in:
Cédric Krier
2024-01-07 19:11:58 +01:00
parent 8aa394901f
commit 79a23ca262
+1 -1
View File
@@ -1251,7 +1251,7 @@ class ModelSQL(ModelStorage):
model = cls.__name__
if Model:
model = Model.get_name(cls.__name__)
ids = ', '.join(map(str, ids[:5]))
ids = ', '.join(map(str, wrong_ids[:5]))
if len(wrong_ids) > 5:
ids += '...'
if domain: