From e05ed616e62fee09de071f9fc4f635f86ded58df Mon Sep 17 00:00:00 2001 From: Marc Lebreuil Date: Wed, 15 May 2024 19:27:43 +0000 Subject: [PATCH] v2.1.0 Netbox 4.0.2 compatibility --- CHANGELOG.md | 4 ++++ pyproject.toml | 4 ++-- src/netbox_contract/__init__.py | 4 ++-- src/netbox_contract/views.py | 2 +- 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cf50d0e..7e66f2d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,10 @@ ## Version 2 +### Version 2.1.0 + +* Netbox v4 compatibility. Netbox4.0.2 become a minimum requirement + ### Version 2.0.14 * [127](https://github.com/mlebreuil/netbox-contract/issues/127) Fix contract filtering diff --git a/pyproject.toml b/pyproject.toml index dfd7421..be12b19 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,12 +1,12 @@ [project] name = "netbox-contract" -version = "2.0.15" +version = "2.1.0" authors = [ { name="Marc Lebreuil", email="marc@famillelebreuil.net" }, ] description = "Contract management plugin for Netbox" readme = "README.md" -requires-python = ">=3.8" +requires-python = ">=3.10" dependencies = [ 'python-dateutil', ] diff --git a/src/netbox_contract/__init__.py b/src/netbox_contract/__init__.py index 1165f8f..8cac0f1 100644 --- a/src/netbox_contract/__init__.py +++ b/src/netbox_contract/__init__.py @@ -5,11 +5,11 @@ class ContractsConfig(PluginConfig): name = 'netbox_contract' verbose_name = 'Netbox contract' description = 'Contract management plugin for Netbox' - version = '2.0.15' + version = '2.1.0' author = 'Marc Lebreuil' author_email = 'marc@famillelebreuil.net' base_url = 'contracts' - min_version = '3.5.0' + min_version = '4.0.2' required_settings = [] default_settings = { 'top_level_menu': False, diff --git a/src/netbox_contract/views.py b/src/netbox_contract/views.py index 0659054..12f230a 100644 --- a/src/netbox_contract/views.py +++ b/src/netbox_contract/views.py @@ -10,7 +10,7 @@ from netbox.views.generic.utils import get_prerequisite_model from tenancy.views import ObjectContactsView from utilities.forms import restrict_form_fields -from utilities.utils import normalize_querydict +from utilities.querydict import normalize_querydict from utilities.views import register_model_view from . import filtersets, forms, tables