mirror of
https://github.com/jazzband/django-auditlog.git
synced 2026-03-16 22:20:26 +00:00
parent
81bcd47ab0
commit
182c3f69a6
1 changed files with 14 additions and 0 deletions
|
|
@ -121,3 +121,17 @@ related objects::
|
|||
obj = MyModel.objects.first()
|
||||
rel_history = LogEntry.objects.get_for_objects(obj.related.all())
|
||||
full_history = (obj.history.all() | rel_history.all()).order_by('-timestamp')
|
||||
|
||||
Management commands
|
||||
-------------------
|
||||
|
||||
.. versionadded:: 0.4.0
|
||||
|
||||
Auditlog provides the ``auditlogflush`` management command to clear all log entries from the database.
|
||||
|
||||
The command asks for confirmation, it is not possible to execute the command without giving any form of (simulated) user
|
||||
input.
|
||||
|
||||
.. warning::
|
||||
|
||||
Using the ``auditlogflush`` command deletes all log entries permanently and irreversibly from the database.
|
||||
|
|
|
|||
Loading…
Reference in a new issue