Merge branch 'master' of ssh://git.xkjq.uk:30001/ross/rad
This commit is contained in:
@@ -461,3 +461,9 @@ class CidUserGroup(models.Model):
|
|||||||
|
|
||||||
def __str__(self) -> str:
|
def __str__(self) -> str:
|
||||||
return str(self.name)
|
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>
|
<h3>Users</h3>
|
||||||
|
|
||||||
|
{{cidusergroup.GetGroupUsers}}
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
Reference in New Issue
Block a user