Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <a name="liked" href="">
- <p class="likediz" style="float: right;">
- <i class="fas fa-thumbs-down"></i>
- {{ instance.dizlike }}
- </p>
- </a>
- if request.user.is_authenticated:
- like = HttpResponse("liked")
- if like:
- instance.like += 1
- instance.save
Add Comment
Please, Sign In to add comment