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:
Jan-Jelle Kester 2013-12-11 16:58:32 +01:00
parent ec051d11f0
commit 8c541fe416

View file

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