How to add comment reply in django

I am trying to add reply functionality. Basically it will be parent child relationship. I am trying to do this by passing parent foreign key value as hidden input in my reply from. But all reply are posting as a parent comment.

{% for q in queryset %} #I am using queryset for review every commnet before it showing in my html template.
name: {{}}
replay to this commnet:
 {% csrf_token %}
 <input type="hidden" name="parent_id" value="{{q.parent}}"> #passing parent foreign key  value as hidden input.
<input type="text" name="name" class="form-control"  placeholder="Your Name" required>
<input type="email" name="email" class="form-control" placeholder="Enter email" required>
 <textarea class="form-control"  name="comment" id="exampleFormControlTextarea1" rows="3">
 <button class="btn btn-primary" type="submit">Submit</button>
{% endfor  %}

def post(self,request,slug):

          blog = Blog.objects.get(slug=slug)

          form = CommentFrom(request.POST)


          if form.is_valid():

             comment = 

    = blog


             messages.add_message(self.request, messages.INFO, 'Your Comment pending for admin approval')

             return redirect(reverse('blog-detail', kwargs={'slug':slug}))




This is a duplicate of an existing thread. Please do not repost multiple requests for the same information. If you need further information or clarification on your previous topic, post additional questions there.

sorry KenWhitesell I didn’t knew that. Next time I will be more careful. Please accept my apologies