.
This commit is contained in:
@@ -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,7 +25,7 @@ Use this form to create / edit a CID user group.
|
||||
|
||||
<h3>Users</h3>
|
||||
|
||||
{{cidusergroup.ciduser_set}}
|
||||
{{cidusergroup.GetGroupUsers}}
|
||||
|
||||
</form>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user