[PR #1026] [MERGED] #152: Image attachments #12147

Closed
opened 2025-12-29 22:19:53 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/1026
Author: @jeremystretch
Created: 4/3/2017
Status: Merged
Merged: 4/3/2017
Merged by: @jeremystretch

Base: v2-developHead: image-attachments


📝 Commits (4)

  • b643939 Initial work on #152: Image attachments
  • 50d7fd7 Added image attachments to sites and devices
  • 6bbdc2b Enable serving static media through Django
  • 2c1fa62 Implemented API endpoints for ImageAttachments

📊 Changes

22 files changed (+330 additions, -17 deletions)

View changed files

📝 netbox/dcim/models.py (+4 -1)
📝 netbox/dcim/urls.py (+5 -0)
📝 netbox/extras/api/serializers.py (+54 -3)
📝 netbox/extras/api/urls.py (+3 -0)
📝 netbox/extras/api/views.py (+7 -1)
📝 netbox/extras/forms.py (+10 -2)
netbox/extras/migrations/0005_add_imageattachment.py (+34 -0)
📝 netbox/extras/models.py (+55 -0)
netbox/extras/urls.py (+12 -0)
netbox/extras/views.py (+30 -0)
netbox/media/image-attachments/.gitignore (+2 -0)
📝 netbox/netbox/settings.py (+5 -2)
📝 netbox/netbox/urls.py (+5 -0)
📝 netbox/templates/dcim/device.html (+14 -0)
📝 netbox/templates/dcim/rack.html (+14 -0)
📝 netbox/templates/dcim/site.html (+14 -0)
netbox/templates/inc/image_attachments.html (+36 -0)
📝 netbox/templates/utilities/obj_edit.html (+1 -1)
📝 netbox/utilities/api.py (+17 -1)
📝 netbox/utilities/forms.py (+6 -5)

...and 2 more files

📄 Description

Implements feature request #152: Image attachments for sites, racks, and devices


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbox-community/netbox/pull/1026 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 4/3/2017 **Status:** ✅ Merged **Merged:** 4/3/2017 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `v2-develop` ← **Head:** `image-attachments` --- ### 📝 Commits (4) - [`b643939`](https://github.com/netbox-community/netbox/commit/b643939cc4197fd288b9ef33152cc9ae9de6610f) Initial work on #152: Image attachments - [`50d7fd7`](https://github.com/netbox-community/netbox/commit/50d7fd776fd49ad28be44935145762052136c55f) Added image attachments to sites and devices - [`6bbdc2b`](https://github.com/netbox-community/netbox/commit/6bbdc2bae168846289bfdc18eb844f13f1c99d52) Enable serving static media through Django - [`2c1fa62`](https://github.com/netbox-community/netbox/commit/2c1fa628a24c240cc7ef87bf22605a78b159dd47) Implemented API endpoints for ImageAttachments ### 📊 Changes **22 files changed** (+330 additions, -17 deletions) <details> <summary>View changed files</summary> 📝 `netbox/dcim/models.py` (+4 -1) 📝 `netbox/dcim/urls.py` (+5 -0) 📝 `netbox/extras/api/serializers.py` (+54 -3) 📝 `netbox/extras/api/urls.py` (+3 -0) 📝 `netbox/extras/api/views.py` (+7 -1) 📝 `netbox/extras/forms.py` (+10 -2) ➕ `netbox/extras/migrations/0005_add_imageattachment.py` (+34 -0) 📝 `netbox/extras/models.py` (+55 -0) ➕ `netbox/extras/urls.py` (+12 -0) ➕ `netbox/extras/views.py` (+30 -0) ➕ `netbox/media/image-attachments/.gitignore` (+2 -0) 📝 `netbox/netbox/settings.py` (+5 -2) 📝 `netbox/netbox/urls.py` (+5 -0) 📝 `netbox/templates/dcim/device.html` (+14 -0) 📝 `netbox/templates/dcim/rack.html` (+14 -0) 📝 `netbox/templates/dcim/site.html` (+14 -0) ➕ `netbox/templates/inc/image_attachments.html` (+36 -0) 📝 `netbox/templates/utilities/obj_edit.html` (+1 -1) 📝 `netbox/utilities/api.py` (+17 -1) 📝 `netbox/utilities/forms.py` (+6 -5) _...and 2 more files_ </details> ### 📄 Description Implements feature request #152: Image attachments for sites, racks, and devices --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 22:19:53 +01:00
adam closed this issue 2025-12-29 22:19:53 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#12147