From 98e3461503a03a52e7384d75ea7b44573d0852fa Mon Sep 17 00:00:00 2001 From: Joseph Kennedy Date: Mon, 28 Aug 2017 02:29:09 -0400 Subject: [PATCH] Switch back to base model for Interface and remove custom_fields --- netbox/dcim/models.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/netbox/dcim/models.py b/netbox/dcim/models.py index c396be3a2..ba7928bd1 100644 --- a/netbox/dcim/models.py +++ b/netbox/dcim/models.py @@ -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']