Skip to content

Commit

Permalink
Merge pull request #192 from mlebreuil/develop
Browse files Browse the repository at this point in the history
v2.2.7
  • Loading branch information
mlebreuil authored Sep 18, 2024
2 parents f9279c1 + 44c93c7 commit d46ab9e
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "netbox-contract"
version = "2.2.6"
version = "2.2.7"
authors = [
{ name="Marc Lebreuil", email="[email protected]" },
]
Expand Down
2 changes: 1 addition & 1 deletion src/netbox_contract/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '[email protected]'
base_url = 'contracts'
Expand Down
2 changes: 1 addition & 1 deletion src/netbox_contract/migrations/0026_auto_20240421_1550.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
5 changes: 5 additions & 0 deletions utils/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down

0 comments on commit d46ab9e

Please sign in to comment.