1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2024-12-25 06:22:22 +00:00

Fix organizer form

This commit is contained in:
Yohann D'ANELLO 2020-05-06 20:42:06 +02:00
parent ce9f5b5665
commit 72519c3d30

View File

@ -58,7 +58,7 @@ class OrganizerForm(forms.ModelForm):
def save(self, commit=True):
user = self.instance
user.role = '0admin' if user.is_superuser else '1organizer'
user.role = '0admin' if user.is_superuser else '1volunteer'
user.save()
super().save(commit)