{% load admin_tags %} {% with nic=item %}

{{ nic|repr }} ID: {{nic.pk}} MAC: {{ nic.mac }} {{ nic.state|upper }}

ID
{{ nic.pk }}
MAC
{{ nic.mac }}
Name
{{ nic.name|default:"-" }}
Public
{{ nic.public }}
User ID
{{ nic.userid }}
Created
{{ nic.created }} ({{ nic.created|timesince }} ago)
Updated
{{ nic.updated }} ({{ nic.created|timesince }} ago)
State
{{ nic.state }}
Firewall profile
{{ nic.firewall_profile }}
Security groups
{% for group in nic.security_groups.all %} {{ group.name|upper }} {% empty %} None {% endfor %}
{% include "admin/action_list_horizontal.html" %}
{% endwith %}