diff --git a/docs/release-notes/version-3.4.md b/docs/release-notes/version-3.4.md index c1e41a321..596bd0180 100644 --- a/docs/release-notes/version-3.4.md +++ b/docs/release-notes/version-3.4.md @@ -4,6 +4,7 @@ ### Enhancements +* [#10414](https://github.com/netbox-community/netbox/issues/10414) - Enable general purpose image attachments for device types * [#10600](https://github.com/netbox-community/netbox/issues/10600) - Allow custom object fields to reference a user or group * [#11015](https://github.com/netbox-community/netbox/issues/11015) - Remove unit from commit rate column header in circuits table * [#11431](https://github.com/netbox-community/netbox/issues/11431) - Disallow changing custom field type after creation diff --git a/netbox/dcim/models/devices.py b/netbox/dcim/models/devices.py index 0526c49cb..2061a951e 100644 --- a/netbox/dcim/models/devices.py +++ b/netbox/dcim/models/devices.py @@ -120,6 +120,10 @@ class DeviceType(PrimaryModel, WeightMixin): blank=True ) + images = GenericRelation( + to='extras.ImageAttachment' + ) + clone_fields = ( 'manufacturer', 'u_height', 'is_full_depth', 'subdevice_role', 'airflow', 'weight', 'weight_unit' ) diff --git a/netbox/templates/dcim/devicetype.html b/netbox/templates/dcim/devicetype.html index 930390a56..ab2fa3382 100644 --- a/netbox/templates/dcim/devicetype.html +++ b/netbox/templates/dcim/devicetype.html @@ -98,6 +98,7 @@ {% include 'inc/panels/custom_fields.html' %} {% include 'inc/panels/tags.html' %} {% include 'inc/panels/comments.html' %} + {% include 'inc/panels/image_attachments.html' %} {% plugin_right_page object %}