Potential error when running remove_stale_contenttypes
#387
peteeckel
announced in
Announcements
Replies: 1 comment
-
This has been addressed in the migration that renames |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
After upgrading to NetBox DNS 1.1.0, in some cases invocations of
manage.py remove_stale_contenttypes
fail with an exception:This is also mentioned in NetBox issue netbox-community/netbox#17361.
This is caused by the renaming of the
Contact
model toRegistrationContact
, possibly in combination with recent internal changes in NetBox.The workaround to clean up that issue is to run
dbshell
and remove the orphaned entries from theObjectChange
data:It is advisable to have a backup available when working directly on the database!
It is advisable to have a backup available when working directly on the database!
This is not happening for everyone. If you do not use registration contacts or don't have any changes in the change log (expiry is by default set to 90 days) you will not be affected.
Beta Was this translation helpful? Give feedback.
All reactions