diff --git a/CHANGELOG.md b/CHANGELOG.md index afb8291..4c84f69 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,10 @@ ## Version 2 +### Version 2.2.7 + +* fix migration dependency + ### Version 2.2.6 * [186](https://github.com/mlebreuil/netbox-contract/issues/186) Code compatibility fix for Netbox 4.1 diff --git a/pyproject.toml b/pyproject.toml index 1fc0233..aa68945 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "netbox-contract" -version = "2.2.6" +version = "2.2.7" authors = [ { name="Marc Lebreuil", email="marc@famillelebreuil.net" }, ] diff --git a/src/netbox_contract/__init__.py b/src/netbox_contract/__init__.py index f269a0f..c3ee87c 100644 --- a/src/netbox_contract/__init__.py +++ b/src/netbox_contract/__init__.py @@ -5,7 +5,7 @@ class ContractsConfig(PluginConfig): name = 'netbox_contract' verbose_name = 'Netbox contract' description = 'Contract management plugin for Netbox' - version = '2.2.6' + version = '2.2.7' author = 'Marc Lebreuil' author_email = 'marc@famillelebreuil.net' base_url = 'contracts' diff --git a/src/netbox_contract/migrations/0026_auto_20240421_1550.py b/src/netbox_contract/migrations/0026_auto_20240421_1550.py index f7ba221..ba9358f 100644 --- a/src/netbox_contract/migrations/0026_auto_20240421_1550.py +++ b/src/netbox_contract/migrations/0026_auto_20240421_1550.py @@ -8,7 +8,7 @@ def update_changed_object_type(apps, schema_editor): Update the Change Log related object type to match renamed contract_assignment type """ - ObjectChange = apps.get_model('extras', 'ObjectChange') + ObjectChange = apps.get_model('core', 'ObjectChange') ContentType = apps.get_model('contenttypes', 'ContentType') ct = ContentType.objects.get( app_label='netbox_contract', model='contractassignment' diff --git a/utils/README.md b/utils/README.md index 9770166..0d3d9b1 100644 --- a/utils/README.md +++ b/utils/README.md @@ -82,6 +82,11 @@ For development, install the plugin from the local file system: python3 -m pip uninstall netbox-contract python3 -m pip install -e netbox-contract ``` +Update the configuration: + +``` +cp netbox-contract/utils/netbox-configuration-final.py netbox/netbox/netbox/configuration.py +``` run database migrations: