[PR #20138] [MERGED] Fixes #20137: Ensure proper model resolution for get_for_model() and get_for_models() #15835

Closed
opened 2025-12-30 00:24:19 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/20138
Author: @jeremystretch
Created: 8/20/2025
Status: Merged
Merged: 8/20/2025
Merged by: @jnovinger

Base: featureHead: 20137-objecttype-get_for_model


📝 Commits (1)

  • 371e424 Fixes #20137: Ensure proper model resolution for get_for_model() and get_for_models()

📊 Changes

1 file changed (+8 additions, -2 deletions)

View changed files

📝 netbox/core/models/object_types.py (+8 -2)

📄 Description

Fixes: #20137

Ensure that an instance passed to either method is resolved to its class.


🔄 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/20138 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 8/20/2025 **Status:** ✅ Merged **Merged:** 8/20/2025 **Merged by:** [@jnovinger](https://github.com/jnovinger) **Base:** `feature` ← **Head:** `20137-objecttype-get_for_model` --- ### 📝 Commits (1) - [`371e424`](https://github.com/netbox-community/netbox/commit/371e4248b876c1990306f278c1a869b915fcae8d) Fixes #20137: Ensure proper model resolution for get_for_model() and get_for_models() ### 📊 Changes **1 file changed** (+8 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `netbox/core/models/object_types.py` (+8 -2) </details> ### 📄 Description ### Fixes: #20137 Ensure that an instance passed to either method is resolved to its class. --- <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-30 00:24:19 +01:00
adam closed this issue 2025-12-30 00:24:19 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#15835