[WEI] Fix permission check to register new accounts to users
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
This commit is contained in:
parent
5bf6a5501d
commit
a2a749e1ca
2 changed files with 13 additions and 12 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue