diff --git a/app/models.py b/app/models.py
index dada209..feea2e1 100644
--- a/app/models.py
+++ b/app/models.py
@@ -558,7 +558,7 @@ class Account(db.Model):
"""
account = Account.query.filter(Account.name == self.name).first()
for domain in account.domains:
- domain.assoc_account(None)
+ Domain(name=domain.name).assoc_account(None)
def create_account(self):
"""
@@ -664,6 +664,7 @@ class Account(db.Model):
users.append(User(id=uid).get_user_info_by_id().username)
self.grant_privileges(users)
+
def add_user(self, user):
"""
Add a single user to Account by User
diff --git a/app/templates/admin_manageaccount.html b/app/templates/admin_manageaccount.html
index efe6210..221700c 100644
--- a/app/templates/admin_manageaccount.html
+++ b/app/templates/admin_manageaccount.html
@@ -36,6 +36,8 @@
Description |
Contact |
Mail |
+ Member |
+ Domain |
Action |
@@ -46,6 +48,8 @@
{{ account.description }} |
{{ account.contact }} |
{{ account.mail }} |
+ {{ account.user_num }} |
+ {{ account.domains|length }} |
|