[Answer]-User connections in django

1👍

You’ve overridden the reverse accessors by declaring related_name attributes: you need to use them instead.

However, what you actually want is a ManyToManyField pointing at ‘self’ – call it connections, then you can drop the Connection class altogether, and replace the existing propery with just self.connections.all().

Leave a comment