How to check if user has already voted?
Closed this issue · 2 comments
rohitnaidu19 commented
I dont want user to vote multiple times. How can I check if user has already voted?
dbanck commented
rohitnaidu19 commented
Hey, Thanks a Lot!! :-)
…On Sat, Jul 8, 2017 at 1:51 PM, Daniel Banck ***@***.***> wrote:
We have a builtin check if an user has voted and don't allow voting
multiple times. You can even specify if an user is allowed to change its
vote.
You can see how this works here
<https://github.com/weluse/django-updown/blob/master/updown/views.py#L38>
and here
<https://github.com/weluse/django-updown/blob/master/tests/test_model.py#L44>
I hope this will help :)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#27 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AJmFXv9k_5svXW11jfWGz_OhhGNqWWf7ks5sLzwKgaJpZM4ORqXF>
.