Skip to content

Commit f7dc5e6

Browse files
committed
Add NetBox 4.6.x support (widen compat range to 4.5.0 - 4.6.99)
Bump max_version from 4.5.99 to 4.6.99 and release as 2.2.0. Source-level audit against the v4.6.0 upstream tag confirms every NetBox API this plugin imports is unchanged: ViewTab, register_model_view, htmx_partial, EnhancedPaginator, get_paginate_count, BaseTable, NetBoxModelFilterSetForm, SavedFiltersMixin, TagFilterField, CustomFieldTypeChoices, CustomFieldUIVisibleChoices, and the registry['views'] shape. The 4.6 deprecations of registry['models'] and legacy actions={} view dicts do not affect this plugin (we touch neither). Upstream netbox_custom_objects >= 0.5.0 is recommended on NetBox 4.6 (its max_version covers 4.6.99). The customobject.html template override remains required - v0.5.0 still hardcodes its tabs block without {% model_view_tabs object %}. Verified locally on NetBox 4.5.10: ruff check + format clean, all 53 tests in tests/ pass. End-to-end verification on a 4.6.0 install pending (no local 4.6 environment available).
1 parent ed27d11 commit f7dc5e6

5 files changed

Lines changed: 31 additions & 12 deletions

File tree

CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,24 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [2.2.0] - 2026-05-11
9+
10+
### Changed
11+
12+
- Widen supported NetBox range to **4.5.0 – 4.6.99** (`max_version` bumped from
13+
`4.5.99` to `4.6.99`). No code or template changes were required: every NetBox
14+
API the plugin depends on — `ViewTab`, `register_model_view`, `htmx_partial`,
15+
`EnhancedPaginator`, `get_paginate_count`, `BaseTable`,
16+
`NetBoxModelFilterSetForm`, `SavedFiltersMixin`, `TagFilterField`,
17+
`CustomFieldTypeChoices`, `CustomFieldUIVisibleChoices`, and the
18+
`registry['views']` shape — is unchanged in NetBox 4.6 (verified against the
19+
`v4.6.0` upstream tag). The 4.6 deprecations of `registry['models']` and
20+
legacy `actions = {...}` view dicts do not affect this plugin.
21+
- On NetBox 4.6, the upstream `netbox_custom_objects` plugin **≥ 0.5.0** is
22+
recommended (its `max_version` covers 4.6.99). The CO detail-page template
23+
override remains necessary — `customobject.html` in upstream v0.5.0 still
24+
hardcodes its `{% block tabs %}` without `{% model_view_tabs object %}`.
25+
826
## [2.1.0] - 2026-03-16
927

1028
### Added

CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ To find all custom objects referencing a Device (pk=42):
9898

9999
Reference: `netbox_custom_objects/template_content.py::CustomObjectLink.left_page()`
100100

101-
## Key Import Paths (NetBox 4.5.x)
101+
## Key Import Paths (NetBox 4.5.x / 4.6.x)
102102

103103
```python
104104
from utilities.views import ViewTab, register_model_view

README.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
[![CI](https://github.com/CESNET/netbox-custom-objects-tab/actions/workflows/ci.yml/badge.svg)](https://github.com/CESNET/netbox-custom-objects-tab/actions/workflows/ci.yml)
44
[![PyPI](https://img.shields.io/pypi/v/netbox-custom-objects-tab)](https://pypi.org/project/netbox-custom-objects-tab/)
55
[![Python](https://img.shields.io/pypi/pyversions/netbox-custom-objects-tab)](https://pypi.org/project/netbox-custom-objects-tab/)
6-
[![NetBox](https://img.shields.io/badge/NetBox-4.5.x-blue)](https://github.com/netbox-community/netbox)
6+
[![NetBox](https://img.shields.io/badge/NetBox-4.5.x_|_4.6.x-blue)](https://github.com/netbox-community/netbox)
77
[![License](https://img.shields.io/badge/license-Apache%202.0-blue)](LICENSE)
88

9-
A NetBox 4.5.x plugin that adds **Custom Objects** tabs to object detail pages,
9+
A NetBox 4.5.x / 4.6.x plugin that adds **Custom Objects** tabs to object detail pages,
1010
showing Custom Object instances from the `netbox_custom_objects` plugin that reference
1111
those objects via OBJECT or MULTIOBJECT fields. Works on standard NetBox models (Device,
1212
Site, Rack, …), third-party plugin models, and Custom Object detail pages themselves
@@ -26,16 +26,17 @@ Two tab modes are available:
2626

2727
## Requirements
2828

29-
- NetBox 4.5.0 – 4.5.99
30-
- `netbox_custom_objects` plugin **≥ 0.4.6** installed and configured
29+
- NetBox 4.5.0 – 4.6.99
30+
- `netbox_custom_objects` plugin **≥ 0.4.6** installed and configured (≥ 0.5.0 recommended on NetBox 4.6)
3131

3232
## Compatibility
3333

34-
| Plugin version | NetBox version | `netbox_custom_objects` version |
35-
|----------------|----------------|---------------------------------|
36-
| 2.1.x | 4.5.4+ | ≥ 0.4.6 |
37-
| 2.0.x | 4.5.x | ≥ 0.4.6 |
38-
| 1.0.x | 4.5.x | ≥ 0.4.4 |
34+
| Plugin version | NetBox version | `netbox_custom_objects` version |
35+
|----------------|----------------|---------------------------------------|
36+
| 2.2.x | 4.5.4+ / 4.6.x | ≥ 0.4.6 (≥ 0.5.0 on 4.6) |
37+
| 2.1.x | 4.5.4+ | ≥ 0.4.6 |
38+
| 2.0.x | 4.5.x | ≥ 0.4.6 |
39+
| 1.0.x | 4.5.x | ≥ 0.4.4 |
3940

4041
## Installation
4142

netbox_custom_objects_tab/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class NetBoxCustomObjectsTabConfig(PluginConfig):
1212
author_email = "jan.krupa@cesnet.cz"
1313
base_url = "custom-objects-tab"
1414
min_version = "4.5.0"
15-
max_version = "4.5.99"
15+
max_version = "4.6.99"
1616
default_settings = {
1717
# Per-type tabs: each Custom Object Type gets its own tab (opt-in, empty by default).
1818
"typed_models": [],

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "netbox-custom-objects-tab"
7-
version = "2.1.1"
7+
version = "2.2.0"
88
description = "NetBox plugin that adds a Custom Objects tab to object detail pages"
99
readme = "README.md"
1010
requires-python = ">=3.12"

0 commit comments

Comments
 (0)