- form = PollForm(request.POST, poll = poll)\r
- if form.is_valid():\r
- if not poll.voted(request.session):\r
- try:\r
- poll_item = PollItem.objects.filter(pk = form.cleaned_data['vote'], poll = poll).get()
- except PollItem.DoesNotExist:\r
- pass\r
- else:\r
+ form = PollForm(request.POST, poll = poll)
+ if form.is_valid():
+ if not poll.voted(request.session):
+ try:
+ poll_item = PollItem.objects.filter(pk=form.cleaned_data['vote'], poll=poll).get()
+ except PollItem.DoesNotExist:
+ pass
+ else: