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