Skip to main content
https://img.shields.io/pypi/v/django-admin-logs.svg https://img.shields.io/travis/radwon/django-admin-logs.svg https://img.shields.io/codecov/c/github/radwon/django-admin-logs.svg

Log entries are automatically created by the Django framework whenever a user adds, changes or deletes objects through the admin interface.

Django Admin Logs is a package that allows you to either view the admin log entries from within the admin interface, or to disable them entirely.

Requirements

  • Python 3.5+

  • Django 2.1+

Installation

Install the package from PyPI:

pip install django-admin-logs

Then add it to your INSTALLED_APPS in the settings file:

INSTALLED_APPS = (
    ...
    'django_admin_logs',
    ...
)

Configuration

By default, Django Admin Logs enables log entries to be viewed from within the admin interface but does not allow them to be deleted. Either of these options can be configured by adding the following to your settings file.

DJANGO_ADMIN_LOGS_DELETABLE = True

This allows super users, or any staff users with the delete_logentry permission, to delete log entries from within the admin interface.

DJANGO_ADMIN_LOGS_ENABLED = False

This disables admin log entries so that they are no longer created by the Django framework or viewable from within the admin interface.

Development

From the local project directory, activate the virtual environment and install the development requirements:

pip install -r requirements_dev.txt

To run tests for the installed version of Python and Django using pytest:

pytest

To run tests for all supported Python and Django versions using tox:

tox

To run tests for specific versions e.g. Python 3.9 and Django 3.2:

tox -e py39-django32

Changelog

1.0.2 (2021-04-24)

  • Added support for Django 3.2 and Python 3.9

1.0.1 (2020-08-16)

  • Added support for Django 3.1

1.0.0 (2020-03-03)

  • Initial release

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-admin-logs-1.0.2.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_admin_logs-1.0.2-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file django-admin-logs-1.0.2.tar.gz.

File metadata

  • Download URL: django-admin-logs-1.0.2.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.7

File hashes

Hashes for django-admin-logs-1.0.2.tar.gz
Algorithm Hash digest
SHA256 aedb5df940d32c10423d65136343bc009727df8a5a49ed0196e65241d823a890
MD5 0eca6d081c2b682f42d798e1e2f06d8c
BLAKE2b-256 4d2e3bdbe47b155424727be2c1d6e5e3f520179742eaaec395c7787918a77ed3

See more details on using hashes here.

File details

Details for the file django_admin_logs-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: django_admin_logs-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.7

File hashes

Hashes for django_admin_logs-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 81753c20d372bc5562fe4a09090418bbb61b308388e851b19192873a472fa3d1
MD5 edf2edb0feb4bdbe46a81af35865ee90
BLAKE2b-256 48328ff7f1167ca82319ef804f5cd0d368ce60352789afe0a25d56b74e2327df

See more details on using hashes here.

Release history Release notifications | RSS feed

1.5.0

2 files

1.4.0

2 files

1.3.0

2 files

1.2.0

2 files

1.1.0

2 files

This release

1.0.2 This release

2 files

1.0.1

2 files

1.0.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page