[Fixed]-Model self-dependency (one-to-many field) implementation

16👍

I think this is what you’re looking for:

dependencies = models.ManyToManyField("self", symmetrical=False)

See the docs for symmetrical.

Leave a comment