Rename Interface to VMInterface

This commit is contained in:
Jeremy Stretch
2020-06-23 13:16:21 -04:00
parent d1bd010e05
commit 75354a8a78
13 changed files with 62 additions and 60 deletions

View File

@@ -3,7 +3,7 @@ from django_tables2.utils import Accessor
from tenancy.tables import COL_TENANT
from utilities.tables import BaseTable, ColoredLabelColumn, TagColumn, ToggleColumn
from .models import Cluster, ClusterGroup, ClusterType, Interface, VirtualMachine
from .models import Cluster, ClusterGroup, ClusterType, VirtualMachine, VMInterface
CLUSTERTYPE_ACTIONS = """
<a href="{% url 'virtualization:clustertype_changelog' slug=record.slug %}" class="btn btn-default btn-xs" title="Change log">
@@ -175,5 +175,5 @@ class VirtualMachineDetailTable(VirtualMachineTable):
class InterfaceTable(BaseTable):
class Meta(BaseTable.Meta):
model = Interface
model = VMInterface
fields = ('name', 'enabled', 'description')