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
The text was updated successfully, but these errors were encountered:
int-ua
changed the title
IntegrityError on saving a related instance with unique=True on the relation field
IntegrityError on saving a related instance with unique=True on the relation field or on a OneToOneField
Mar 22, 2017
do not see how to solve this with code. Seems an invalid "business" scenario, we can only catch the error and let the user fix the merge, removing (blanking) one of the field.
Just ran into this myself after testing implementing this into a project.
My suggested implementation would be if the the resulting unique records would match that the record that is trying to be changed should be deleted. If the records don't match then the two records could be then displayed in the same merge interface.
When both master and other have related OneToOne objects:
Any ideas on a solution or a workaround?
The text was updated successfully, but these errors were encountered: