1👍
I am pretty new to django so there may be a better solution, but I’ll give it a try.
In your view you can do something like this. Considering your code I assume you have a class
Poll
poll = Poll.objects.filter(pin=request.POST['pin'])
Source:stackexchange.com