mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-22 20:12:00 -06:00
Changed nat_outside to ManyToManyColumn
This commit is contained in:
parent
6179686c81
commit
63e8faeed9
@ -56,14 +56,6 @@ VRF_LINK = """
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
"""
|
"""
|
||||||
|
|
||||||
NAT_OUTSIDE_LINK = """
|
|
||||||
{% if record.nat_outside.count > 0 %}
|
|
||||||
{% for nat in record.nat_outside.all %}<a href="{{ nat.get_absolute_url }}">{{ nat.address.ip }}</a>{% if not forloop.last %}, {% endif %}{% endfor %}
|
|
||||||
{% else %}
|
|
||||||
—
|
|
||||||
{% endif %}
|
|
||||||
"""
|
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# RIRs
|
# RIRs
|
||||||
@ -368,8 +360,8 @@ class IPAddressTable(TenancyColumnsMixin, NetBoxTable):
|
|||||||
orderable=False,
|
orderable=False,
|
||||||
verbose_name='NAT (Inside)'
|
verbose_name='NAT (Inside)'
|
||||||
)
|
)
|
||||||
nat_outside = tables.TemplateColumn(
|
nat_outside = tables.ManyToManyColumn(
|
||||||
template_code=NAT_OUTSIDE_LINK,
|
linkify_item=True,
|
||||||
orderable=False,
|
orderable=False,
|
||||||
verbose_name='NAT (Outside)'
|
verbose_name='NAT (Outside)'
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user