diff --git a/netbox/dcim/models/devices.py b/netbox/dcim/models/devices.py index 67e58298e..04adfbeb4 100644 --- a/netbox/dcim/models/devices.py +++ b/netbox/dcim/models/devices.py @@ -374,6 +374,11 @@ class ModuleType(NetBoxModel): blank=True ) + # Generic relations + images = GenericRelation( + to='extras.ImageAttachment' + ) + clone_fields = ('manufacturer',) class Meta: diff --git a/netbox/templates/dcim/moduletype.html b/netbox/templates/dcim/moduletype.html index 59d1139be..2c8e77be3 100644 --- a/netbox/templates/dcim/moduletype.html +++ b/netbox/templates/dcim/moduletype.html @@ -29,12 +29,13 @@ + {% include 'inc/panels/custom_fields.html' %} {% plugin_left_page object %}