[4.0.0]Can't delete a specific admin - Key (id) is still referenced from table "django_admin_log" #15987
-
Hi,
Python version: 3.11.2 Any idea ? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
The error likely stems from an entry in the separate Django admin log (not to be confused with NetBox's global change log) which references the user account with ID 31. You can likely resolve the issue by deleting any of the offending records using a SQL shell
Or, to wipe out all the logs to mitigate additional errors:
|
Beta Was this translation helpful? Give feedback.
-
I had an issue after the upgrade to 4.3 with the change log not showing any entries when logging in as a particular user (even with the cache disabled). I had to delete the logs from |
Beta Was this translation helpful? Give feedback.
-
FYI this has been addressed under #20341 in NetBox v4.4.1. |
Beta Was this translation helpful? Give feedback.
The error likely stems from an entry in the separate Django admin log (not to be confused with NetBox's global change log) which references the user account with ID 31. You can likely resolve the issue by deleting any of the offending records using a SQL shell
manage.py dbshell
:Or, to wipe out all the logs to mitigate additional errors: