From 9bb5951dacd29f7bf547584bafabf88e91f89450 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Lenglet Date: Fri, 23 Dec 2016 01:32:42 +0100 Subject: [PATCH] Removed request.user as user bc it already exists --- election/views.py | 1 - 1 file changed, 1 deletion(-) diff --git a/election/views.py b/election/views.py index 95665f7a..b8072e86 100644 --- a/election/views.py +++ b/election/views.py @@ -100,7 +100,6 @@ class ElectionDetailView(CanViewMixin, DetailView): kwargs = super(ElectionDetailView, self).get_context_data(**kwargs) kwargs['candidate_form'] = CandidateForm(self.get_object().id) kwargs['election_form'] = VoteForm(self.get_object(), self.request.user) - kwargs['user'] = self.request.user return kwargs