mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2025-02-22 23:01:39 +00:00
Compare commits
No commits in common. "a8a69c766cc5490cfab690d49add2569e4de6246" and "9c4e68d0ea17f45882c1e210810e5384dca442cd" have entirely different histories.
a8a69c766c
...
9c4e68d0ea
@ -377,7 +377,7 @@ class AuthorizationTemplateView(TemplateView):
|
||||
or self.request.user.is_authenticated and self.request.user.registration.is_admin:
|
||||
context["registration"] = registration
|
||||
if "tournament_id" in self.request.GET and self.request.GET.get("tournament_id").isnumeric():
|
||||
if not Tournament.objects.filter(pk=self.request.GET.get("tournament_id")).exists():
|
||||
if not Tournament.objects.filter(pk=self.request.get("tournament_id")).exists():
|
||||
raise PermissionDenied("Ce tournoi n'existe pas.")
|
||||
context["tournament"] = Tournament.objects.get(pk=self.request.GET.get("tournament_id"))
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user