The table django_admin_log
is useful to monitor the actions of users in the admin. Right now, I can achieve that by querying the database directly. Is there a built-in functionality where I can view the table django_admin_log
through Django's admin for all users?
The Django admin application can use your models to automatically build a site area that you can use to create, view, update, and delete records. This can save you a lot of time during development, making it very easy to test your models and get a feel for whether you have the right data.
Django's Admin is amazing. A built-in and fully functional interface that quickly gets in and allows data entry is priceless. Developers can focus on building additional functionality instead of creating dummy interfaces to interact with the database.
No. The django admin is not intended for any end-user. The django admin feature is intended to assist the website developer, and that is all.
The Django admin is an automatically-generated user interface for Django models. The register function is used to add models to the Django admin so that data for those models can be created, deleted, updated and queried through the user interface.
Can't you just:
from django.contrib.admin.models import LogEntry
admin.site.register(LogEntry)
In one of your admin.py files? I just tested it and it is barebones but it works.
You might want to be more specific and create a ModelAdmin
class for LogEntry to provide for a better list view and maybe some filtering abilities. But that should work.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With