Browse Source

Remove extraneous argument to GenericRelation

jeremystretch 3 năm trước cách đây
mục cha
commit
6415661b61
1 tập tin đã thay đổi với 1 bổ sung2 xóa
  1. 1 2
      netbox/dcim/models/device_components.py

+ 1 - 2
netbox/dcim/models/device_components.py

@@ -95,8 +95,7 @@ class ModularComponentModel(ComponentModel):
     inventory_items = GenericRelation(
         to='dcim.InventoryItem',
         content_type_field='component_type',
-        object_id_field='component_id',
-        related_name='%(class)ss',
+        object_id_field='component_id'
     )
 
     class Meta: