Skip to content

IntegrityError on saving a related instance with unique=True on the relation field or on a OneToOneField #118

Open
@int-ua

Description

@int-ua

When both master and other have related OneToOne objects:

IntegrityError: duplicate key value violates unique constraint
"common_relatedmodel_connection_id_########_uniq"
DETAIL:  Key (connection_id)=(20147) already exists

Any ideas on a solution or a workaround?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions