Issue
How would I go about clearing or re-setting the "Recent Actions" Panel in the Django Admin?
I want the admin interface to look like a fresh install.
Solution
The "Recent Actions" panel in Django Admin displays LogEntry
models. To clear it you would just delete all the objects:
from django.contrib.admin.models import LogEntry
LogEntry.objects.all().delete()
Answered By - pcoronel
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.