mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2025-06-21 01:18:22 +02:00
Better mails
This commit is contained in:
@ -56,6 +56,8 @@ class OrganizerForm(forms.ModelForm):
|
||||
|
||||
def save(self, commit=True):
|
||||
user = self.instance
|
||||
print(user)
|
||||
print(user.pk)
|
||||
user.role = '0admin' if user.is_superuser else '1organizer'
|
||||
super().save(commit)
|
||||
|
||||
|
Reference in New Issue
Block a user