mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-29 06:38:47 +01:00
* Working configuration file example
* A username can now be modified see #204
This commit is contained in:
@@ -296,6 +296,7 @@ class AccountFormGeneral(forms.ModelForm):
|
||||
|
||||
def save(self, commit=True):
|
||||
account = super(AccountFormGeneral, self).save(commit=False)
|
||||
account.username = self.cleaned_data["username"]
|
||||
if commit:
|
||||
account.save()
|
||||
role = None
|
||||
|
||||
Reference in New Issue
Block a user