Fixes #8096: Fix DataError during change logging of objects with very long string representations

This commit is contained in:
jeremystretch
2021-12-18 14:16:37 -05:00
parent 628e186846
commit b00eeb86ea
2 changed files with 2 additions and 1 deletions

View File

@@ -62,7 +62,7 @@ class ChangeLoggingMixin(models.Model):
objectchange = ObjectChange(
changed_object=self,
related_object=related_object,
object_repr=str(self),
object_repr=str(self)[:200],
action=action
)
if hasattr(self, '_prechange_snapshot'):