Added documentation on logging

This commit is contained in:
Raphael Michel
2016-07-31 13:31:57 +02:00
parent f8392db16c
commit 505d3624b3
4 changed files with 109 additions and 1 deletions

View File

@@ -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')