NetBox 4.7 support (2.6.0) - #18
Merged
Merged
Conversation
added 2 commits
September 4, 2026 11:38
- max_version 4.7.99. All NetBox APIs and templates the plugin uses are unchanged in 4.7; verified against a local 4.7.0 instance. - Raise ImproperlyConfigured at startup when netbox_custom_objects is not loaded (NetBox 4.7 skips netbox-custom-objects 0.6.0, whose max_version is 4.6.99), instead of an opaque 'isn't in INSTALLED_APPS' RuntimeError. - Fix combined/typed tab never rendered active on Custom Object detail pages for all but the first-registered CO type: the generic CO-page URL is bound to the first model's view class, so its ViewTab instance never equals the registry entry for the page's model. plugin_extra_tabs now falls back to (label, weight) equality.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Widens NetBox compat to 4.5.2 – 4.7.99 and releases 2.6.0.
max_version4.7.99. No code changes needed for 4.7 itself — every NetBox API/template used is unchanged; none of the 4.7 removals apply.netbox-custom-objects>=0.6.1(0.6.0 caps at 4.6.99 and is skipped). New startup guard raisesImproperlyConfiguredwith that hint instead of the opaqueisn't in INSTALLED_APPSRuntimeError.plugin_extra_tabsnow falls back to (label, weight).Verified on local NetBox 4.7.0: combined + typed tabs on Device and CO pages, HTMX partials, search/sort/paging → 200, CO combined tab now active.
pytest62 pass, ruff clean.