[PR #4797] [MERGED] Fixes #4695 - Add Metadata class that returns content type choices #12922

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/4797
Author: @DanSheps
Created: 6/26/2020
Status: Merged
Merged: 7/1/2020
Merged by: @jeremystretch

Base: developHead: 4695_fix_api_cable_choices_termination_types


📝 Commits (3)

  • d21881e #4695 - Add Metadata class that returns content type choices
  • 8179cfa #4695 - Rename LimitedMetaData to ContentTypeMetadata
  • b26fc81 Sort the list for consistent output

📊 Changes

2 files changed (+21 additions, -0 deletions)

View changed files

📝 netbox/dcim/api/views.py (+2 -0)
netbox/utilities/metadata.py (+19 -0)

📄 Description

Fixes: #4695

Introduce a LimitedMetadataContentTypeMetadata class that will return ContentType choices


🔄 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/4797 **Author:** [@DanSheps](https://github.com/DanSheps) **Created:** 6/26/2020 **Status:** ✅ Merged **Merged:** 7/1/2020 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `4695_fix_api_cable_choices_termination_types` --- ### 📝 Commits (3) - [`d21881e`](https://github.com/netbox-community/netbox/commit/d21881e207b318696f854a5d834e118defab3dbd) #4695 - Add Metadata class that returns content type choices - [`8179cfa`](https://github.com/netbox-community/netbox/commit/8179cfa4c1aaeb28a6fe0376ae5cf0e459c50ac1) #4695 - Rename LimitedMetaData to ContentTypeMetadata - [`b26fc81`](https://github.com/netbox-community/netbox/commit/b26fc811872caf3393be0a6b6c0800f5335ad2df) Sort the list for consistent output ### 📊 Changes **2 files changed** (+21 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `netbox/dcim/api/views.py` (+2 -0) ➕ `netbox/utilities/metadata.py` (+19 -0) </details> ### 📄 Description ### Fixes: #4695 Introduce a ~~LimitedMetadata~~ContentTypeMetadata class that will return ContentType choices --- <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:24:23 +01:00
adam closed this issue 2025-12-29 22:24:24 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#12922