[PR #16013] [MERGED] Fixes #16011: Fix site tenant assignment by PK via REST API #14751

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/16013
Author: @jeremystretch
Created: 5/7/2024
Status: Merged
Merged: 5/7/2024
Merged by: @jeremystretch

Base: developHead: 16011-fix-api-site-tenant-assignment


📝 Commits (1)

  • 9bfbca7 Fixes #16011: Fix site tenant assignment by PK via REST API

📊 Changes

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

View changed files

📝 netbox/dcim/api/serializers_/sites.py (+1 -1)
📝 netbox/dcim/tests/test_api.py (+3 -0)

📄 Description

Fixes: #16011

  • Correct instantiation of TenantSerializer on SiteSerializer
  • Extend the API test case to effect tenant assignment of a site

🔄 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/16013 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 5/7/2024 **Status:** ✅ Merged **Merged:** 5/7/2024 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `16011-fix-api-site-tenant-assignment` --- ### 📝 Commits (1) - [`9bfbca7`](https://github.com/netbox-community/netbox/commit/9bfbca7d82a3485c22a7e4534700a4f52d1692bb) Fixes #16011: Fix site tenant assignment by PK via REST API ### 📊 Changes **2 files changed** (+4 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `netbox/dcim/api/serializers_/sites.py` (+1 -1) 📝 `netbox/dcim/tests/test_api.py` (+3 -0) </details> ### 📄 Description ### Fixes: #16011 - Correct instantiation of TenantSerializer on SiteSerializer - Extend the API test case to effect tenant assignment of a site --- <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:28 +01:00
adam closed this issue 2025-12-29 23:26:32 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#14751