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

Don't change the password of another member (+ minor fixes on WEI app)

This commit is contained in:
Yohann D'ANELLO
2020-04-27 20:25:02 +02:00
parent eb39aff1ab
commit 8c0ccdfdd0
6 changed files with 15 additions and 16 deletions

View File

@ -780,7 +780,7 @@ class WEIValidateRegistrationView(ProtectQuerysetMixin, LoginRequiredMixin, Crea
ret = super().form_valid(form)
membership.refresh_from_db()
membership.roles.add(WEIRole.objects.get("Adhérent WEI"))
membership.roles.add(WEIRole.objects.get(name="Adhérent WEI"))
return ret