[PR #15903] [MERGED] Fixes #15896: Retain proper formatting for JSON custom field default values #14715

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/15903
Author: @jeremystretch
Created: 4/30/2024
Status: Merged
Merged: 4/30/2024
Merged by: @jeremystretch

Base: developHead: 15896-json-customfield-fix


📝 Commits (1)

  • 6cb6ce6 Fixes #15896: Retain proper formatting for JSON custom field default values

📊 Changes

2 files changed (+9 additions, -2 deletions)

View changed files

📝 netbox/extras/models/customfields.py (+2 -1)
📝 netbox/netbox/forms/base.py (+7 -1)

📄 Description

Fixes: #15896

Call json.dumps() on initial values to ensure strings are represented correctly.


🔄 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/15903 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 4/30/2024 **Status:** ✅ Merged **Merged:** 4/30/2024 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `15896-json-customfield-fix` --- ### 📝 Commits (1) - [`6cb6ce6`](https://github.com/netbox-community/netbox/commit/6cb6ce6bad0d50ad1a9501c66cbf11ea02271802) Fixes #15896: Retain proper formatting for JSON custom field default values ### 📊 Changes **2 files changed** (+9 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `netbox/extras/models/customfields.py` (+2 -1) 📝 `netbox/netbox/forms/base.py` (+7 -1) </details> ### 📄 Description ### Fixes: #15896 Call `json.dumps()` on initial values to ensure strings are represented correctly. --- <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:26:14 +01:00
adam closed this issue 2025-12-29 23:26:14 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#14715