Skip to content
Discussion options

You must be logged in to vote

That's odd. What version of NetBox are you running?

The django_admin_log table is from the old Django admin UI. It should be safe to just drop the table, or (to be on the safe side) remove any records for the user being deleted. You'll need to do this in the database shell (manage.py dbshell) as there's no longer any application-level support for these objects.

Deleting individual user records:

netbox=> DELETE FROM django_admin_log WHERE user_id=123;  # Replace with ID of user
DELETE 12

Or drop the whole table:

netbox=> DROP TABLE django_admin_log;
DROP TABLE

Then, you should be able to delete the user normally.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by GeertReijnders
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants