From 7a0cb64fb6016e73a4c7f408fbbe7110f1d8fffe Mon Sep 17 00:00:00 2001 From: ynerant Date: Sun, 7 Feb 2021 17:40:29 +0100 Subject: [PATCH] Fix team validation --- apps/participation/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/participation/views.py b/apps/participation/views.py index 469081c..7362839 100644 --- a/apps/participation/views.py +++ b/apps/participation/views.py @@ -234,7 +234,7 @@ class TeamDetailView(LoginRequiredMixin, FormMixin, ProcessFormView, DetailView) """ An admin validates the team (or not) """ - if not self.request.user.user.registration.is_admin and \ + if not self.request.user.registration.is_admin and \ (not self.object.participation.tournament or self.request.user.registration not in self.object.participation.tournament.organizers.all()): form.add_error(None, _("You are not an organizer of the tournament."))