title: How to display comments and it's replies in django templates?
body: <p>I want to display comment and it's replies in the template. But there is an issue, every reply may have some other replies. The below snippet is my <code>Comment</code> and <code>CommentReply</code> model:</p>
  
  <pre><code>class Comment(models.Model):
      author = models.ForeignKey(Profile, related_name="c_sender", on_delete=models.CASCADE, unique=False)
      comment = models.CharField(max_length=500, unique=False)
      created_date = models.DateTimeField(auto_now_add=True)
      edited_date = models.DateTimeField(blank=True, null=True)
  
      def __str__(self):
          return self.comment
  
      @property
      def replys(self):
          return CommentReply.objects.filter(comment_id=self)
  
  
  class CommentReply(models.Model):
      comment_id = models.ForeignKey(Comment, related_name='sender', on_delete=models.CASCADE)
      reply_id = models.ForeignKey(Comment, related_name='reply', on_delete=models.CASCADE)
  </code></pre>
  
  <p><strong><em>Updated:</em></strong>
  Also I have a model for WorksComments that every comments that related to Work model saved there.</p>
  
  <pre><code> class WorkComment(models.Model):
       work_id = models.ForeignKey(Work, on_delete=models.CASCADE, related_name='e_exercise', unique=False)
       comment_id = models.ForeignKey(Comment, related_name='e_comment',  unique=False)
  </code></pre>
  
  <p>The below snippet is my view:</p>
  
  <pre><code>comments = WorkComment.objects.filter(work_id=work).all()
  return render(request, 'work.html', {'comments': comments})
  </code></pre>
  
  <p>My question is how to display comments and it's replies under it, and every reply may have some other replyies that I want to display them too.</p>