[PR #2967] [MERGED] Allow nullable length unit in cable API #12474

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/2967
Author: @aruhier
Created: 3/5/2019
Status: Merged
Merged: 3/5/2019
Merged by: @jeremystretch

Base: developHead: fix_cable_length_unit_api


📝 Commits (1)

  • bd65e78 Allow nullable length unit in cable API

📊 Changes

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

View changed files

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

📄 Description

Fixes: #2966

Cables models define length_unit as None by default, but the API rejects a
request containing a null length_unit.

Allows it in the API serializer.


🔄 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/2967 **Author:** [@aruhier](https://github.com/aruhier) **Created:** 3/5/2019 **Status:** ✅ Merged **Merged:** 3/5/2019 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `fix_cable_length_unit_api` --- ### 📝 Commits (1) - [`bd65e78`](https://github.com/netbox-community/netbox/commit/bd65e782bba0a1e84c96aa7257780d766c05648c) Allow nullable length unit in cable API ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `netbox/dcim/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 opened for approval prior to filing a pull request. This helps avoid wasting time and effort on something that we might not be able to accept. Please indicate the relevant feature request or bug report below. IF YOUR PULL REQUEST DOES NOT REFERENCE AN ACCEPTED BUG REPORT OR FEATURE REQUEST, IT WILL BE MARKED AS INVALID AND CLOSED. --> ### Fixes: #2966 Cables models define length_unit as None by default, but the API rejects a request containing a null length_unit. Allows it in the API serializer. --- <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 22:21:47 +01:00
adam closed this issue 2025-12-29 22:21:47 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#12474