[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: 1 comment 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.
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: