[PR #12322] [MERGED] 12195 remove incorrect null=True on choice fields #13950

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/12322
Author: @arthanson
Created: 4/21/2023
Status: Merged
Merged: 4/21/2023
Merged by: @jeremystretch

Base: featureHead: 12195-role-null


📝 Commits (1)

  • e570edb 12195 remove incorrect null=True on choice fields

📊 Changes

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

View changed files

📝 netbox/ipam/api/serializers.py (+1 -1)
📝 netbox/virtualization/api/serializers.py (+1 -1)

📄 Description

Fixes: #12195

Incorrectly set the allow_null=True on the ChocieField, not needed for spectacular.


🔄 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/12322 **Author:** [@arthanson](https://github.com/arthanson) **Created:** 4/21/2023 **Status:** ✅ Merged **Merged:** 4/21/2023 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `feature` ← **Head:** `12195-role-null` --- ### 📝 Commits (1) - [`e570edb`](https://github.com/netbox-community/netbox/commit/e570edb5b621e263fa04d7c2739dc6dfedd4ff6e) 12195 remove incorrect null=True on choice fields ### 📊 Changes **2 files changed** (+2 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `netbox/ipam/api/serializers.py` (+1 -1) 📝 `netbox/virtualization/api/serializers.py` (+1 -1) </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 opening a pull request. This helps avoid waste time and effort on a proposed change that we might not be able to accept. IF YOUR PULL REQUEST DOES NOT REFERENCE AN ISSUE WHICH HAS BEEN ASSIGNED TO YOU, IT WILL BE CLOSED AUTOMATICALLY. Please specify your assigned issue number on the line below. --> ### Fixes: #12195 <!-- Please include a summary of the proposed changes below. --> Incorrectly set the allow_null=True on the ChocieField, not needed for spectacular. --- <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:21:42 +01:00
adam closed this issue 2025-12-29 23:21:43 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#13950