Skip to content

Commit d46ab9e

Browse files
authored
Merge pull request #192 from mlebreuil/develop
v2.2.7
2 parents f9279c1 + 44c93c7 commit d46ab9e

File tree

5 files changed

+12
-3
lines changed

5 files changed

+12
-3
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55

66
## Version 2
77

8+
### Version 2.2.7
9+
10+
* fix migration dependency
11+
812
### Version 2.2.6
913

1014
* [186](https://github.com/mlebreuil/netbox-contract/issues/186) Code compatibility fix for Netbox 4.1

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "netbox-contract"
3-
version = "2.2.6"
3+
version = "2.2.7"
44
authors = [
55
{ name="Marc Lebreuil", email="[email protected]" },
66
]

src/netbox_contract/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ class ContractsConfig(PluginConfig):
55
name = 'netbox_contract'
66
verbose_name = 'Netbox contract'
77
description = 'Contract management plugin for Netbox'
8-
version = '2.2.6'
8+
version = '2.2.7'
99
author = 'Marc Lebreuil'
1010
author_email = '[email protected]'
1111
base_url = 'contracts'

src/netbox_contract/migrations/0026_auto_20240421_1550.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ def update_changed_object_type(apps, schema_editor):
88
Update the Change Log related object type to match
99
renamed contract_assignment type
1010
"""
11-
ObjectChange = apps.get_model('extras', 'ObjectChange')
11+
ObjectChange = apps.get_model('core', 'ObjectChange')
1212
ContentType = apps.get_model('contenttypes', 'ContentType')
1313
ct = ContentType.objects.get(
1414
app_label='netbox_contract', model='contractassignment'

utils/README.md

+5
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,11 @@ For development, install the plugin from the local file system:
8282
python3 -m pip uninstall netbox-contract
8383
python3 -m pip install -e netbox-contract
8484
```
85+
Update the configuration:
86+
87+
```
88+
cp netbox-contract/utils/netbox-configuration-final.py netbox/netbox/netbox/configuration.py
89+
```
8590

8691
run database migrations:
8792

0 commit comments

Comments
 (0)