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

@ -18,6 +18,7 @@
* [#8078](https://github.com/netbox-community/netbox/issues/8078) - Add missing wireless models to `lsmodels()` in `nbshell`
* [#8079](https://github.com/netbox-community/netbox/issues/8079) - Fix validation of LLDP neighbors when connected device has an asset tag
* [#8088](https://github.com/netbox-community/netbox/issues/8088) - Improve legibility of text in labels with light-colored backgrounds
* [#8096](https://github.com/netbox-community/netbox/issues/8096) - Fix DataError during change logging of objects with very long string representations
---

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