import django_tables2 as tables from django_tables2.utils import Accessor from .models import VRF, RIR, Aggregate, Prefix, IPAddress, VLAN RIR_EDIT_LINK = """ {% if perms.ipam.change_rir %}Edit{% endif %} """ UTILIZATION_GRAPH = """ {% with record.get_utilization as percentage %}