Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@ db.sqlite3
*.swo

tools/

ignore/
ignore/
.claude/
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,20 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [2.0.2] - 2026-03-06

### Fixed

- **TypeError on typed tab** — removed `user=` keyword argument from `CustomObjectTable`
instantiation. `django_tables2.Table.__init__` does not accept this kwarg; it was
redundant because `table.configure(request)` already applies per-user column preferences.
Fixes crash on NetBox 4.5.4-Docker (`netbox_custom_objects` 0.4.6).

### Changed

- Plugin version is now defined only in `pyproject.toml` and read at runtime via
`importlib.metadata.version()`, eliminating the duplicate version string in `__init__.py`.

## [2.0.1] - 2026-02-25

### Added
Expand Down
4 changes: 3 additions & 1 deletion netbox_custom_objects_tab/__init__.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
from importlib.metadata import version

from netbox.plugins import PluginConfig


class NetBoxCustomObjectsTabConfig(PluginConfig):
name = "netbox_custom_objects_tab"
verbose_name = "Custom Objects Tab"
description = 'Adds a "Custom Objects" tab to NetBox object detail pages'
version = "2.0.1"
version = version("netbox-custom-objects-tab")
author = "Jan Krupa"
author_email = "jan.krupa@cesnet.cz"
base_url = "custom-objects-tab"
Expand Down
2 changes: 1 addition & 1 deletion netbox_custom_objects_tab/views/typed.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ def get(self, request, pk):

# Build table class and instantiate
table_class = _build_typed_table_class(cot, dynamic_model)
table = table_class(filtered_qs, user=request.user)
table = table_class(filtered_qs)
table.columns.show("pk")

# Shadow @cached_property to avoid reverse error for dynamic models
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "netbox-custom-objects-tab"
version = "2.0.1"
version = "2.0.2"
description = "NetBox plugin that adds a Custom Objects tab to object detail pages"
readme = "README.md"
requires-python = ">=3.12"
Expand Down