From 89114111fbed7f11031a049b302f836d7ba8ba69 Mon Sep 17 00:00:00 2001 From: Antoine Nguyen Date: Thu, 26 Apr 2012 18:06:35 +0200 Subject: [PATCH] * Working configuration file example * A username can now be modified see #204 --- admin/forms.py | 1 + admin/tables.py | 1 - settings_sample.py | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/forms.py b/admin/forms.py index e20fa46cc..451ef249f 100644 --- a/admin/forms.py +++ b/admin/forms.py @@ -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 diff --git a/admin/tables.py b/admin/tables.py index 19934cc36..24fce9c38 100644 --- a/admin/tables.py +++ b/admin/tables.py @@ -59,7 +59,6 @@ class IdentitiesTable(tables.Table): ) name_or_rcpt = tables.Column("name_or_rcpt", label=ugettext_lazy("Fullname/Recipient")) actions = tables.ActionColumn("actions", label=ugettext_lazy("Actions"), - width="70px", align="center", defvalue=identity_actions) cols_order = ["identity", "name_or_rcpt", "actions"] diff --git a/settings_sample.py b/settings_sample.py index 4bbcc36c9..b7ebc5898 100644 --- a/settings_sample.py +++ b/settings_sample.py @@ -128,8 +128,8 @@ INSTALLED_APPS = ( ) AUTHENTICATION_BACKENDS = ( + 'modoboa.lib.authbackends.SimpleBackend', 'django.contrib.auth.backends.ModelBackend', - 'modoboa.lib.authbackends.SimpleBackend' ) #SESSION_COOKIE_AGE = 300