Add tenancy to cluster

fix pep8
This commit is contained in:
Fredrik Lönnegren
2019-10-07 08:29:32 +02:00
parent 9f52cdeee9
commit 3262805938
13 changed files with 80 additions and 8 deletions

View File

@@ -83,6 +83,16 @@
{% endif %}
</td>
</tr>
<tr>
<td>Tenant</td>
<td>
{% if cluster.tenant %}
<a href="{{ cluster.tenant.get_absolute_url }}">{{ cluster.tenant }}</a>
{% else %}
<span class="text-muted">None</span>
{% endif %}
</td>
</tr>
<tr>
<td>Site</td>
<td>

View File

@@ -8,6 +8,7 @@
{% render_field form.name %}
{% render_field form.type %}
{% render_field form.group %}
{% render_field form.tenant %}
{% render_field form.site %}
</div>
</div>