Merge branch 'master' of ssh://git.xkjq.uk:30001/ross/rad

This commit is contained in:
Ross
2022-02-15 22:56:23 +00:00
2 changed files with 8 additions and 0 deletions
+6
View File
@@ -461,3 +461,9 @@ class CidUserGroup(models.Model):
def __str__(self) -> str:
return str(self.name)
def GetGroupUsers(self):
cid_users = self.ciduser_set.all()
s = ", ".join([f"{user.id} - {user.name}" for user in cid_users])
return s
@@ -25,5 +25,7 @@ Use this form to create / edit a CID user group.
<h3>Users</h3>
{{cidusergroup.GetGroupUsers}}
</form>
{% endblock %}