Skip to content

Commit

Permalink
fix migration dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
mlebreuil committed Sep 18, 2024
1 parent 5f201d0 commit d76e7ff
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
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 d76e7ff

Please sign in to comment.