diff --git a/manager/models.py b/manager/models.py index 73d7f36..a877c3a 100644 --- a/manager/models.py +++ b/manager/models.py @@ -13,6 +13,9 @@ class Organization(models.Model): def __str__(self): return self.name + def orgausers(self): + return self.users.filter(is_superuser=False) + class Network(models.Model): name = models.CharField("Common Name", max_length=64, blank=True, null=True) extip = models.CharField("External/Public IP", max_length=15, unique=True) diff --git a/templates/manager/adduser.html b/templates/manager/adduser.html index aa082a7..b26e96d 100644 --- a/templates/manager/adduser.html +++ b/templates/manager/adduser.html @@ -26,7 +26,7 @@ diff --git a/templates/manager/index.html b/templates/manager/index.html index 4467ab1..aba11b2 100644 --- a/templates/manager/index.html +++ b/templates/manager/index.html @@ -91,7 +91,7 @@ {% userUsers as users %} {% for auser in users %}