[PR #20847] [MERGED] Fixes #20839: Rename object_type to object_type_id in FilterForm for CustomLink and SavedFilter #16064

Closed
opened 2025-12-30 00:25:36 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/20847
Author: @pheus
Created: 11/20/2025
Status: Merged
Merged: 11/25/2025
Merged by: @bctiemann

Base: mainHead: 20839-fix-objecttype-filterform-for-customlinks-and-savedfilters


📝 Commits (1)

  • cd8087a fix(forms): Rename object_type to object_type_id

📊 Changes

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

View changed files

📝 netbox/extras/forms/filtersets.py (+6 -6)

📄 Description

Fixes: #20839

The “Object type” filter was being ignored because the forms submitted object_type instead of the expected object_type_id.

This PR renames the field and updates references in CustomLinkFilterForm and SavedFilterFilterForm (plus related fieldsets) so filtering works as intended.

No database or API changes.


🔄 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/20847 **Author:** [@pheus](https://github.com/pheus) **Created:** 11/20/2025 **Status:** ✅ Merged **Merged:** 11/25/2025 **Merged by:** [@bctiemann](https://github.com/bctiemann) **Base:** `main` ← **Head:** `20839-fix-objecttype-filterform-for-customlinks-and-savedfilters` --- ### 📝 Commits (1) - [`cd8087a`](https://github.com/netbox-community/netbox/commit/cd8087ab4386f595e047732abecfbf10bfcd4d88) fix(forms): Rename `object_type` to `object_type_id` ### 📊 Changes **1 file changed** (+6 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `netbox/extras/forms/filtersets.py` (+6 -6) </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: #20839 The “Object type” filter was being ignored because the forms submitted `object_type` instead of the expected `object_type_id`. This PR renames the field and updates references in `CustomLinkFilterForm` and `SavedFilterFilterForm` (plus related fieldsets) so filtering works as intended. No database or API changes. --- <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-30 00:25:36 +01:00
adam closed this issue 2025-12-30 00:25:36 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#16064