def get_context_data(self, **kwargs): context = super(VotingView, self).get_context_data(**kwargs) context['participants'] = Participant.get_participants_contest(self.kwargs['pk']) context['contest'] = self.kwargs['pk'] return context