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:
@@ -1,5 +1,5 @@
|
||||
from .auth import User
|
||||
from .base import CachedFile, cachedfile_name
|
||||
from .base import CachedFile, LoggedModel, cachedfile_name
|
||||
from .event import Event, EventLock, EventPermission, EventSetting
|
||||
from .invoices import Invoice, InvoiceLine, invoice_filename
|
||||
from .items import (
|
||||
|
||||
@@ -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