We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Please I want to show the replies number on every comment that are available replies
The text was updated successfully, but these errors were encountered:
extend model like this:
from threadedcomments.models import ThreadedComment as BaseModel class ThreadedCommentExt(BaseModel): class Meta: verbose_name = _("Comment") verbose_name_plural = _("Comments") proxy = True managed = False def get_replies_count(self): count = 0 comments = ThreadedCommentExt.objects.filter(parent=self) for item in comments: count += item.get_replies_count() + 1 return count
Sorry, something went wrong.
No branches or pull requests
Please I want to show the replies number on every comment that are available replies
The text was updated successfully, but these errors were encountered: