fix bugs
This commit is contained in:
parent
b75a52fe74
commit
7174fc1066
2 changed files with 1 additions and 5 deletions
|
@ -71,10 +71,6 @@ def vote_page(request, delta):
|
|||
except PageVoteVoter.DoesNotExist:
|
||||
# We must continue racing in case this is exploited to manipulate votes.
|
||||
continue
|
||||
if -vote.score != delta:
|
||||
return HttpResponseBadRequest(
|
||||
_("You already voted."), content_type="text/plain"
|
||||
)
|
||||
vote.delete()
|
||||
PageVote.objects.filter(id=pagevote_id).update(
|
||||
score=F("score") - vote.score
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue