Skip to content

Fix symmetrical relationship warning #1427

Closed
@brylie

Description

Idea summary

Our Civi model has a relationship to itself with a related_name defined, causing the following warning to appear.

Further details

WARNINGS:
threads.Civi.linked_civis: (fields.W345) related_name has no effect on ManyToManyField with a symmetrical relationship, e.g. to "self".

Task

  • ensure the above warning doesn't display anymore
    • e.g., remove the related_name argument, or set it to +

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions