diff --git a/election/views.py b/election/views.py index 6ebe3051..ecba3a0d 100644 --- a/election/views.py +++ b/election/views.py @@ -134,9 +134,6 @@ class CandidatureCreateView(CanCreateMixin, FormView): data = form.clean() res = super(FormView, self).form_valid(form) data['election'] = Election.objects.get(id=self.election_id) - if data['user'].is_root: - self.create_candidature(data) - return res for grp in data['election'].candidature_groups.all(): if data['user'].is_in_group(grp): self.create_candidature(data)