Fix new organizer role
This commit is contained in:
parent
7bd2e1626f
commit
28abf730a2
|
@ -56,9 +56,8 @@ class OrganizerForm(forms.ModelForm):
|
||||||
|
|
||||||
def save(self, commit=True):
|
def save(self, commit=True):
|
||||||
user = self.instance
|
user = self.instance
|
||||||
print(user)
|
|
||||||
print(user.pk)
|
|
||||||
user.role = '0admin' if user.is_superuser else '1organizer'
|
user.role = '0admin' if user.is_superuser else '1organizer'
|
||||||
|
user.save()
|
||||||
super().save(commit)
|
super().save(commit)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue