The fix has landed in trunk with revision 3110 revision-id: <email address hidden>.
It includes both a unique SQL constraint for m2m relation tables, but also a double-check in fields.many2many.set() to avoid creating duplicate records when [(4,X)] syntax is used to write to a m2m field.
Thanks for reporting!
Note: the unique constraint will be added only in newly created databases.. otherwise it will require manual addition.
The fix has landed in trunk with revision 3110 revision-id: <email address hidden>.
It includes both a unique SQL constraint for m2m relation tables, but also a double-check in fields. many2many. set() to avoid creating duplicate records when [(4,X)] syntax is used to write to a m2m field.
Thanks for reporting!
Note: the unique constraint will be added only in newly created databases.. otherwise it will require manual addition.