A Django app that provides a ModelAdmin for django.contrib.admin's LogEntry model (with everything except the list disabled)
Project description
By default, django.contrib.admin’s index shows the logged in user’s 10 most recent actions. This app provides a ModelAdmin for django.contrib.admin’s LogEntry model (with everything except the list disabled), allowing you to see every action taken by every user. The list can be filtered, searched, and sorted, as you would expect of a ModelAdmin. This app is for Django 1.11 through 5.0. It may work on older versions of Django, but it has not been tested.
Installation
Step 1 of 2: Install the package
pip install django-adminlogentries
Step 2 of 2: Update “settings.py”
Add admin_log_entries to your INSTALLED_APPS:
INSTALLED_APPS = (
...
'admin_log_entries',
...
)
Configuration
By default, the has_module_permission method of this app’s ModelAdmin retains Django’s default behavior. If you want it to return False instead, add the following to your “settings.py”:
ADMIN_LOG_ENTRIES = {
'has_module_permission_false': True,
}
This will prevent “Log entries” from being displayed on the admin index page (and sidebar, in the case of Django 3.1+) and will also prevent accessing the admin module’s index page.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file django_adminlogentries-0.1.3.tar.gz
.
File metadata
- Download URL: django_adminlogentries-0.1.3.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aaa01f863549ea1a54a0b014148a690fd22904a9a5e37b72917fd89a570cf119 |
|
MD5 | 4d67462b6e02b28ae78d0034abf0e092 |
|
BLAKE2b-256 | 472c8eb333c4ca015323ed3e02a04ae69e4b897ea720120380a1e2c21df58fee |
File details
Details for the file django_adminlogentries-0.1.3-py2.py3-none-any.whl
.
File metadata
- Download URL: django_adminlogentries-0.1.3-py2.py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f8d2b7b6a50877ba3509de7ff0e5e9d11999c7b30473e4689c64df4e4a991eea |
|
MD5 | 0b044a2886f677a3616fa2c8f963200a |
|
BLAKE2b-256 | 57433fe359a458668de0dda515babfbe99e6d960c9c97acd3104232b420e7db5 |