mirror of
https://github.com/pretix/pretix.git
synced 2026-05-03 14:54:04 +00:00
Added documentation on logging
This commit is contained in:
@@ -64,4 +64,9 @@ class LoggedModel(models.Model, LoggingMixin):
|
||||
abstract = True
|
||||
|
||||
def all_logentries(self):
|
||||
"""
|
||||
Returns all log entries that are attached to this object.
|
||||
|
||||
:return: A QuerySet of LogEntry objects
|
||||
"""
|
||||
return self.logentries.all().select_related('user')
|
||||
|
||||
Reference in New Issue
Block a user