3👍
✅
URLs:
(r'^dashboard$', 'dashboard_view'),
View:
from django.contrib.admin.models import LogEntry
def dashboard_view(request):
log = LogEntry.objects.select_related().all().order_by("id")
return render_to_response("app_name/dashboard.html", {'log': log},)
Template:
{% for l in log %}
<p>
{{ l.id }} {{ l.user.username }} {{ l.change_message }}
</p>
{% endfor %}
There’s an extension django-reversion it allows to keep track of all changes made to models not only actions in admin interface. It also allows to rollback the model to any point in time.
Source:stackexchange.com