1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Introduced the render_json template filter

This commit is contained in:
Jeremy Stretch
2018-06-28 10:49:52 -04:00
parent c13e4858d7
commit b952ec73ce
4 changed files with 12 additions and 6 deletions

View File

@@ -1,4 +1,5 @@
{% extends 'dcim/device.html' %}
{% load helpers %}
{% block title %}{{ device }} - Config Context{% endblock %}
@@ -10,7 +11,7 @@
<strong>Config Context</strong>
</div>
<div class="panel-body">
<pre>{{ device.get_config_context }}</pre>
<pre>{{ device.get_config_context|render_json }}</pre>
</div>
</div>
</div>