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

ClusterForm should inherit from TenancyForm

This commit is contained in:
Jeremy Stretch
2019-12-06 16:47:29 -05:00
parent 2956eff051
commit 88c7d95b08
2 changed files with 8 additions and 1 deletions

View File

@ -12,6 +12,13 @@
{% render_field form.site %}
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading"><strong>Tenancy</strong></div>
<div class="panel-body">
{% render_field form.tenant_group %}
{% render_field form.tenant %}
</div>
</div>
{% if form.custom_fields %}
<div class="panel panel-default">
<div class="panel-heading"><strong>Custom Fields</strong></div>

View File

@ -77,7 +77,7 @@ class ClusterGroupCSVForm(forms.ModelForm):
# Clusters
#
class ClusterForm(BootstrapMixin, CustomFieldForm):
class ClusterForm(BootstrapMixin, TenancyForm, CustomFieldForm):
comments = CommentField()
tags = TagField(
required=False