From 9b890b07e14731aed00d7b87760e399d47052d32 Mon Sep 17 00:00:00 2001 From: Gabriel Niebler Date: Fri, 17 Apr 2026 17:26:09 +0200 Subject: [PATCH] Adjust docstring for `Action` class in light of the new `Action.ACCESS` value Viewing (i.e. accessing) objects *may* now be logged. And higher numerical value no longer means more intrusive action, since access has the highest value and is the least intrusive. --- auditlog/models.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/auditlog/models.py b/auditlog/models.py index 0b86318..eb6c0bf 100644 --- a/auditlog/models.py +++ b/auditlog/models.py @@ -318,10 +318,7 @@ class AbstractLogEntry(models.Model): class Action: """ - The actions that Auditlog distinguishes: creating, updating and deleting objects. Viewing objects - is not logged. The values of the actions are numeric, a higher integer value means a more intrusive - action. This may be useful in some cases when comparing actions because the ``__lt``, ``__lte``, - ``__gt``, ``__gte`` lookup filters can be used in queries. + The actions that Auditlog distinguishes: creating, updating, deleting and accessing objects. The valid actions are :py:attr:`Action.CREATE`, :py:attr:`Action.UPDATE`, :py:attr:`Action.DELETE` and :py:attr:`Action.ACCESS`.