mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-27 02:48:38 -06:00
17178 review changes
This commit is contained in:
parent
bf1e33f176
commit
a4eb86f8b6
@ -20,9 +20,15 @@
|
||||
<tr>
|
||||
<th scope="row">{% trans "Groups" %}</th>
|
||||
<td>
|
||||
{% for group in object.groups.all %}
|
||||
{{ group|linkify|placeholder }}{% if not forloop.last %}, {% endif %}
|
||||
{% endfor %}
|
||||
{% if object.groups.all|length > 0 %}
|
||||
<ol class="list-unstyled mb-0">
|
||||
{% for group in object.groups.all %}
|
||||
<li>{{ group|linkify|placeholder }}</li>
|
||||
{% endfor %}
|
||||
</ol>
|
||||
{% else %}
|
||||
{{ ''|placeholder }}
|
||||
{% endif %}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -13,6 +13,7 @@ __all__ = (
|
||||
'ContactAssignment',
|
||||
'Contact',
|
||||
'ContactGroup',
|
||||
'ContactGroupMembership',
|
||||
'ContactRole',
|
||||
)
|
||||
|
||||
@ -104,6 +105,8 @@ class ContactGroupMembership(models.Model):
|
||||
constraints = [
|
||||
models.UniqueConstraint(fields=['group', 'contact'], name='unique_group_name')
|
||||
]
|
||||
verbose_name = _('contact group membership')
|
||||
verbose_name_plural = _('contact group memberships')
|
||||
|
||||
|
||||
class ContactAssignment(CustomFieldsMixin, ExportTemplatesMixin, TagsMixin, ChangeLoggedModel):
|
||||
|
Loading…
Reference in New Issue
Block a user