mirror of
https://github.com/jazzband/django-auditlog.git
synced 2026-03-16 22:20:26 +00:00
Remove html_formated_string method on LogEntry model
The method name was incorrectly spelled and the method was not flexible enough. This functionality will be replaced by a more flexible method and/or a template tag.
This commit is contained in:
parent
ec051d11f0
commit
8c541fe416
1 changed files with 0 additions and 7 deletions
|
|
@ -99,13 +99,6 @@ class LogEntry(models.Model):
|
|||
fstring = _("Logged {repr:s}")
|
||||
|
||||
return fstring.format(repr=self.object_repr)
|
||||
|
||||
def html_formated_changes(self):
|
||||
changes_result = []
|
||||
changes_dict = json.loads(self.changes.encode('utf-8'))
|
||||
for field, changes in changes_dict.items():
|
||||
changes_result.append('<strong>%s</strong> from %s <strong>to</strong> %s' % (field, changes[0], changes[1]))
|
||||
return changes_result
|
||||
|
||||
|
||||
class AuditlogHistoryField(generic.GenericRelation):
|
||||
|
|
|
|||
Loading…
Reference in a new issue