[PR #10479] [CLOSED] convert customfield multiobject to ids at save() #13641

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/10479
Author: @PieterL75
Created: 9/27/2022
Status: Closed

Base: developHead: 10241-customfield-multiobject-returns-dict


📝 Commits (2)

  • 6af1aae convert customfield multiobject to ids at save()
  • 291eebd move logic from deserialize to to_internal_value

📊 Changes

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

View changed files

📝 netbox/extras/api/customfields.py (+6 -0)

📄 Description

Fixes: #10241 CustomField MultiObject API returns dict at read but expects id's at save

This change will convert the mixed array of dict and id's into id's only at deserialize


🔄 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/10479 **Author:** [@PieterL75](https://github.com/PieterL75) **Created:** 9/27/2022 **Status:** ❌ Closed **Base:** `develop` ← **Head:** `10241-customfield-multiobject-returns-dict` --- ### 📝 Commits (2) - [`6af1aae`](https://github.com/netbox-community/netbox/commit/6af1aae2e69b2dda708e238c21128319ecd40684) convert customfield multiobject to ids at save() - [`291eebd`](https://github.com/netbox-community/netbox/commit/291eebdba72305ab9cf105a455a1c7922221c846) move logic from deserialize to to_internal_value ### 📊 Changes **1 file changed** (+6 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `netbox/extras/api/customfields.py` (+6 -0) </details> ### 📄 Description <!-- Thank you for your interest in contributing to NetBox! Please note that our contribution policy requires that a feature request or bug report be approved and assigned prior to filing a pull request. This helps avoid wasting time and effort on something that we might not be able to accept. IF YOUR PULL REQUEST DOES NOT REFERENCE AN ISSUE WHICH HAS BEEN ASSIGNED TO YOU, IT WE BE CLOSED AUTOMATICALLY. Specify your assigned issue number on the line below. --> ### Fixes: #10241 CustomField MultiObject API returns dict at read but expects id's at save <!-- Please include a summary of the proposed changes below. --> This change will convert the mixed array of dict and id's into id's only at deserialize --- <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:20:01 +01:00
adam closed this issue 2025-12-29 23:20:01 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#13641