Switch back to base model for Interface and remove custom_fields

This commit is contained in:
Joseph Kennedy 2017-08-28 02:29:09 -04:00
parent 9e086932d9
commit 98e3461503

View File

@ -1121,7 +1121,7 @@ class PowerOutlet(models.Model):
#
@python_2_unicode_compatible
class Interface(CreatedUpdatedModel, CustomFieldModel):
class Interface(models.Model):
"""
A physical data interface within a Device. An Interface can connect to exactly one other Interface via the creation
of an InterfaceConnection.
@ -1146,7 +1146,6 @@ class Interface(CreatedUpdatedModel, CustomFieldModel):
help_text="This interface is used only for out-of-band management"
)
description = models.CharField(max_length=100, blank=True)
custom_field_values = GenericRelation(CustomFieldValue, content_type_field='obj_type', object_id_field='obj_id')
objects = InterfaceQuerySet.as_manager()
csv_headers = ['device','lag','name','mac_address','form_factor','enabled','description','mtu','mgmt_only','is_virtual','is_wireless','is_connected','is_lag']