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

Changed Secret parent from a GenericForeignKey to ForeignKey(Device)

This commit is contained in:
Jeremy Stretch
2016-03-21 11:42:42 -04:00
parent 3f279dc58b
commit a6108f2fa8
16 changed files with 94 additions and 75 deletions

View File

@@ -7,7 +7,7 @@
<div class="col-md-12">
<ol class="breadcrumb">
<li><a href="{% url 'secrets:secret_list' %}">Secrets</a></li>
<li>{{ secret.parent }}</li>
<li><a href="{% url 'dcim:device' pk=secret.device.pk %}">{{ secret.device }}</a></li>
<li>{{ secret.role }}{% if secret.name %} ({{ secret.name }}){% endif %}</li>
</ol>
</div>
@@ -35,9 +35,9 @@
</div>
<table class="table table-hover panel-body">
<tr>
<td>Parent</td>
<td>Device</td>
<td>
<a href="{{ secret.parent.get_absolute_url }}">{{ secret.parent }}</a>
<a href="{% url 'dcim:device' pk=secret.device.pk %}">{{ secret.device }}</a>
</td>
</tr>
<tr>