1
0
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:
Yohann D'ANELLO
2020-05-05 17:40:57 +02:00
parent b835f26611
commit ec39d94e34
5 changed files with 8 additions and 6 deletions

View File

@ -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)