[PR #13379] [MERGED] Closes #13378: Introduce feature mixins for contacts & image attachments #14171

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/13379
Author: @jeremystretch
Created: 8/4/2023
Status: Merged
Merged: 8/4/2023
Merged by: @jeremystretch

Base: featureHead: 13378-feature-mixins


📝 Commits (2)

  • bfbb9e8 Introduce ImageAttachmentsMixin
  • ad66e5a Introduce ContactsMixin

📊 Changes

11 files changed (+56 additions, -121 deletions)

View changed files

📝 netbox/circuits/models/circuits.py (+3 -13)
📝 netbox/circuits/models/providers.py (+3 -13)
📝 netbox/dcim/models/devices.py (+5 -27)
📝 netbox/dcim/models/power.py (+2 -10)
📝 netbox/dcim/models/racks.py (+2 -7)
📝 netbox/dcim/models/sites.py (+5 -24)
📝 netbox/ipam/models/l2vpn.py (+3 -5)
📝 netbox/netbox/models/features.py (+26 -0)
📝 netbox/tenancy/models/tenants.py (+2 -7)
📝 netbox/virtualization/models/clusters.py (+3 -9)
📝 netbox/virtualization/models/virtualmachines.py (+2 -6)

📄 Description

Closes: #13378

Introduce the ContactsMixin and ImageAttachmentsMixin classes to simplify enabling these features for individual models.


🔄 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/13379 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 8/4/2023 **Status:** ✅ Merged **Merged:** 8/4/2023 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `feature` ← **Head:** `13378-feature-mixins` --- ### 📝 Commits (2) - [`bfbb9e8`](https://github.com/netbox-community/netbox/commit/bfbb9e871cf0c3452b1dca99c3deb03d21a52f68) Introduce ImageAttachmentsMixin - [`ad66e5a`](https://github.com/netbox-community/netbox/commit/ad66e5a031dd738bb92afd5d5bc259ba985ced73) Introduce ContactsMixin ### 📊 Changes **11 files changed** (+56 additions, -121 deletions) <details> <summary>View changed files</summary> 📝 `netbox/circuits/models/circuits.py` (+3 -13) 📝 `netbox/circuits/models/providers.py` (+3 -13) 📝 `netbox/dcim/models/devices.py` (+5 -27) 📝 `netbox/dcim/models/power.py` (+2 -10) 📝 `netbox/dcim/models/racks.py` (+2 -7) 📝 `netbox/dcim/models/sites.py` (+5 -24) 📝 `netbox/ipam/models/l2vpn.py` (+3 -5) 📝 `netbox/netbox/models/features.py` (+26 -0) 📝 `netbox/tenancy/models/tenants.py` (+2 -7) 📝 `netbox/virtualization/models/clusters.py` (+3 -9) 📝 `netbox/virtualization/models/virtualmachines.py` (+2 -6) </details> ### 📄 Description ### Closes: #13378 Introduce the `ContactsMixin` and `ImageAttachmentsMixin` classes to simplify enabling these features for individual models. --- <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 23:22:59 +01:00
adam closed this issue 2025-12-29 23:23:00 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#14171