mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2024-12-24 17:42:23 +00:00
Fix organizer form
This commit is contained in:
parent
ce9f5b5665
commit
72519c3d30
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user