[Answer]-Django ForeignKey TypeError: 'RelatedManager'

1👍

The child attribute is a manager (RelatedManager). To query it, you should call .all(), for instance.

def get_child_comment(self):
    return self.child.all()
👤Tiago

Leave a comment