[PR #18908] [MERGED] Fixes #18884: Handle tag assignments manually within deserialize_object() #15470

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/18908
Author: @jeremystretch
Created: 3/14/2025
Status: Merged
Merged: 3/17/2025
Merged by: @arthanson

Base: mainHead: 18884-deserialize_object-tags


📝 Commits (1)

  • 03f178b Fixes #18884: Handle tag assignments manually within deserialize_object

📊 Changes

1 file changed (+13 additions, -0 deletions)

View changed files

📝 netbox/utilities/serialization.py (+13 -0)

📄 Description

Fixes: #18884

Django's native Python deserializer is not compatible with the tag manager, which defaults to specifying tags by name (rather than by numeric ID), so we need to handle those M2M assignments manually.

This should fix netboxlabs/netbox-branching#196


🔄 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/18908 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 3/14/2025 **Status:** ✅ Merged **Merged:** 3/17/2025 **Merged by:** [@arthanson](https://github.com/arthanson) **Base:** `main` ← **Head:** `18884-deserialize_object-tags` --- ### 📝 Commits (1) - [`03f178b`](https://github.com/netbox-community/netbox/commit/03f178b04ebf25894d4cdf516a800c2517a11b97) Fixes #18884: Handle tag assignments manually within deserialize_object ### 📊 Changes **1 file changed** (+13 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `netbox/utilities/serialization.py` (+13 -0) </details> ### 📄 Description ### Fixes: #18884 Django's native Python deserializer is not compatible with the tag manager, which defaults to specifying tags by name (rather than by numeric ID), so we need to handle those M2M assignments manually. This should fix netboxlabs/netbox-branching#196 --- <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:22:07 +01:00
adam closed this issue 2025-12-30 00:22:07 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#15470