[Fixed]-Django. Print all admin actions.

1👍

This solved it:

>>> from django.contrib.admin.models import LogEntry
>>> x = LogEntry.objects.all().order_by("-id")[:200]
>>> for y in x:
...   print("%s - %s" % (y.action_time, y.change_message)) 

Leave a comment