{% extends 'base/layout.html' %} {% block title %}{{ object }}{% endblock %} {% block content %}
Generate Document Edit Delete
Template Info
Name {{ object.name }}
Description {{ object.description|default:"—" }}
Tags {% for tag in object.tags.all %} {{ tag.name }} {% empty %} {% endfor %}
Created {{ object.created|date:"d M Y" }}
Last Updated {{ object.last_updated|date:"d M Y H:i" }}
Available Variables

Device (from NetBox):

  • {{ '{{' }} device.name {{ '}}' }}
  • {{ '{{' }} device.site.name {{ '}}' }}
  • {{ '{{' }} device.role.name {{ '}}' }}
  • {{ '{{' }} device.serial {{ '}}' }}
  • {{ '{{' }} device.asset_tag {{ '}}' }}
  • {{ '{{' }} device.primary_ip4 {{ '}}' }}
  • {{ '{{' }} device.device_type.model {{ '}}' }}
  • {{ '{{' }} device.device_type.manufacturer.name {{ '}}' }}

Loops:

  • {% templatetag openblock %} for device in devices {% templatetag closeblock %}
  • {% templatetag openblock %} for iface in device.interfaces.all {% templatetag closeblock %}
  • {% templatetag openblock %} for c in device.contacts.all {% templatetag closeblock %}
  • {{ '{{' }} c.contact.name {{ '}}' }}
  • {{ '{{' }} c.contact.phone {{ '}}' }}
  • {{ '{{' }} c.role.name {{ '}}' }}

Auto-generated:

  • {{ '{{' }} date {{ '}}' }}
  • {{ '{{' }} generated_by {{ '}}' }}

Extra vars (key=value):

  • {{ '{{' }} change_request {{ '}}' }}
  • {{ '{{' }} mop_author {{ '}}' }}
  • {{ '{{' }} change_window {{ '}}' }}
  • {{ '{{' }} approved_by {{ '}}' }}
  • …any key you define
Template Content
{{ object.content }}
{% endblock %}