Quantcast
Channel: My site - RSS feed
Browsing all 6 articles
Browse latest View live

Answer by vikas.gulati for when i try to upvote a post that i have upvoted...

what i did was to override the process_vote method and change the line which says: score_delta = vote.cancel() response_data['count'] = post.score + score_delta response_data['status'] = 1 #this means...

View Article



Comment by Evgeny for when i try to upvote a post that i have upvoted...

Not sure if it's a big deal, this is the first time someone identified this as a problem in more than two years.

View Article

Comment by Evgeny for when i try to upvote a post that i have upvoted...

Maybe it's not the best way, how would you suggest to handle this situation?

View Article

Comment by vikas.gulati for when i try to upvote a post that i have upvoted...

desired behavior should be that previous vote shall only be cancelled if my current vote and old vote are opposites otherwise it shouldn't. to tackle this situation i had to override the process_vote...

View Article

Comment by todofixthis for when i try to upvote a post that i have upvoted...

What if you wanted to cancel your upvote without downvoting (or vice versa)?

View Article


on trying to upvote again previous vote gets cancelled!

when i try to upvote a post that i have upvoted previously the previous vote gets cancelled and score gets reduced. same problem occurs when i try to downvote a post that i have previously downvoted....

View Article
Browsing all 6 articles
Browse latest View live




Latest Images