Skip to content

Can't remove a user which have audit logs #19855

Closed as not planned
Closed as not planned
@abdulet

Description

@abdulet

Deployment Type

Self-hosted

NetBox Version

4.1.7

Python Version

3.10

Steps to Reproduce

  1. Create a user
  2. Enable audit log
  3. Execute actions that gets registered in audit logs
  4. Delete the user

Expected Behavior

The user to be removed

Observed Behavior

Error messages arise:
update or delete on table "users_user" violates foreign key constraint "django_admin_log_user_id_c564eba6_fk_auth_user_id" on table "django_admin_log"
DETAIL: Key (id)=(XX) is still referenced from table "django_admin_log".

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugA confirmed report of unexpected behavior in the application

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions