When user click to like a post the web page should not refresh(redirect) and count of the likes should be updated.
How can I achieve this please help me.
<a style="{% if request.session.email %}pointer-events: auto;{% else %}pointer-events: none;{% endif %}"
<i class="fa fa-thumbs-o-up" aria-hidden="true"
```
views.py
```
def post_comment_like(request, id):
if (request.session.get('email') is None) or (request.session.get('email') == ""):
return HttpResponseRedirect("/home")
email = request.session.get('email')
qury = Comment.objects.get(id=id)
obj_id = qury.object_id
qury_like = Comment_like.objects.filter(email=email)
qury_like = Comment_like.objects.filter(email=email, object_id=
qury.id, dislike_comment="1").first()
if qury_like:
qury_like.delete()
save_form = Comment_like(email=email, user_name=request.session.get('name'),
content_type=qury.content_type,
object_id=
qury.id,
content=qury.content,
flag_reply=qury.flag_reply,
flag_comment_id=qury.flag_comment_id,
flag_level=qury.flag_level,
like_comment='1')
save_form.save()
qury.like_comment = '1'
qury.dislike_comment = '0'
qury.save()
# return redirect(request.META.get('HTTP_REFERER'))
return HttpResponseRedirect(reverse('detail', args=[str(obj_id)]))