X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/b2d342589a7889a3b096e7192453d53bd28eed7d..ce097db0af8c96297501b569ec49477b76c1ceec:/src/polls/views.py?ds=sidebyside

diff --git a/src/polls/views.py b/src/polls/views.py
index 0d9590d85..7a4e1e9c6 100644
--- a/src/polls/views.py
+++ b/src/polls/views.py
@@ -1,10 +1,8 @@
-# -*- coding: utf-8 -*-
-# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later.
-# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
+# This file is part of Wolne Lektury, licensed under GNU Affero GPLv3 or later.
+# Copyright © Fundacja Wolne Lektury. See NOTICE for more information.
 #
-from django.core.urlresolvers import reverse
-from django.shortcuts import get_object_or_404, redirect, render_to_response
-from django.template import RequestContext
+from django.shortcuts import get_object_or_404, redirect, render
+from django.urls import reverse
 from django.views.decorators import cache
 from django.views.decorators.http import require_http_methods
 
@@ -30,7 +28,7 @@ def poll(request, slug):
                     poll_item.vote(request.session)
         return redirect(redirect_to)
     elif request.method == 'GET':
-        context = RequestContext(request)
+        context = {}
         context['poll'] = poll
         context['voted_already'] = poll.voted(request.session)
-        return render_to_response('polls/poll.html', context)
+        return render(request, 'polls/poll.html', context)