1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2025-06-21 09:58:23 +02:00

[WEI] Fix permission check to register new accounts to users

Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
This commit is contained in:
2021-09-05 17:12:41 +02:00
parent 5bf6a5501d
commit a2a749e1ca
2 changed files with 13 additions and 12 deletions

View File

@ -489,7 +489,7 @@ class WEIRegister1AView(ProtectQuerysetMixin, ProtectedCreateView):
wei = WEIClub.objects.get(pk=self.kwargs["wei_pk"])
return WEIRegistration(
wei=wei,
user=self.request.user,
user=User.objects.get(username="note"),
first_year=True,
birth_date="1970-01-01",
gender="No",
@ -557,7 +557,7 @@ class WEIRegister2AView(ProtectQuerysetMixin, ProtectedCreateView):
wei = WEIClub.objects.get(pk=self.kwargs["wei_pk"])
return WEIRegistration(
wei=wei,
user=self.request.user,
user=User.objects.get(username="note"),
first_year=True,
birth_date="1970-01-01",
gender="No",