* Working configuration file example

* A username can now be modified

see #204
This commit is contained in:
Antoine Nguyen
2012-04-26 18:06:35 +02:00
parent 4f0cd1215b
commit 89114111fb
3 changed files with 2 additions and 2 deletions
+1
View File
@@ -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
-1
View File
@@ -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"]
+1 -1
View File
@@ -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