Avoid deprecated select_related() call on Django 6.1

NetBox 4.7.2 ships Django 6.1, which deprecates select_related() without arguments (an error in Django 7). Only call it when the model has foreign keys; behaviour is unchanged. Verified with NetBox 4.7.2. Bump version to 0.3.14, the version Netbox-Utilities already expects for its rack width integration.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
MrBlakeandClaude Opus 5.5 committed 2026-10-13 14:14:49 +02:00
1 parent 9a1e702099
commit 0fdde044e1
3 files changed
+6 -3

No files matched your search

+1 -1
View File
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "netbox-export"
version = "0.3.13"
version = "0.3.14"
description = "Portable ZIP export and import for scoped NetBox data"
readme = "README.md"
requires-python = ">=3.12"