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()
Source:stackexchange.com
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()