mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-11 04:19:25 +00:00
Added results when the user is not voting
This commit is contained in:
@ -114,6 +114,7 @@ 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['election_results'] = self.get_object().results
|
||||
return kwargs
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user