Skip to content

Superuser: browse site-wide admin action log (all users, not just My actions) #1413

Description

@jonfroehlich

Problem

The admin index "Recent actions" sidebar is deliberately scoped to the current user's own actions (Django's {% get_admin_log ... for_user user %}), so a superuser can only see My actions — there's no easy way to see what other editors/contributors have been doing.

Every admin add/change/delete is recorded in django.contrib.admin.models.LogEntry; it's just never surfaced in the UI.

Solution (Option A)

Register LogEntry as a read-only, superuser-only admin so a superuser can browse everyone's admin activity:

  • Filter by user, action type (add/change/delete), and content type
  • Search by object name, change message, username/name
  • Columns: time, user, colored action label, content type, link to the affected object, change summary
  • Strictly read-only (no add/change/delete) — it's an append-only audit trail
  • Superuser-only visibility (matches the Grant/Award access model); editors/contributors can't see or reach it
  • Appears under Administration as "Log entries"

Notes

  • Considered Option B (widen the sidebar panel for superusers) — not doing that here; the filterable changelist is the more useful tool.

🤖 Generated with Claude Code

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions