mirror of
https://github.com/netbox-community/netbox.git
synced 2026-04-19 15:31:35 +02:00
Fixes #8096: Fix DataError during change logging of objects with very long string representations
This commit is contained in:
@@ -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'):
|
||||
|
||||
Reference in New Issue
Block a user