wip: Global user interface improvment

* The quarantine manager is done
* The webmail is not yet completed
* Cleanup
* More...
This commit is contained in:
Antoine Nguyen
2012-03-27 12:02:46 +02:00
parent 4dae056d87
commit e10bba2d4e
38 changed files with 746 additions and 461 deletions
+1 -1
View File
@@ -246,11 +246,11 @@ class AccountFormGeneral(forms.ModelForm):
role = self.cleaned_data["role"]
else:
role = "SimpleUsers"
account.groups.clear()
if role == "SuperAdmins":
account.is_superuser = True
else:
account.is_superuser = False
account.groups.clear()
account.groups.add(Group.objects.get(name=role))
account.save()
return account
+1 -1
View File
@@ -167,7 +167,7 @@ class User(DUser):
@property
def group(self):
if self.is_superuser:
return "SuperAdmin"
return "SuperAdmins"
try:
return self.groups.all()[0].name
except IndexError: