mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-29 11:09:27 -05:00
fix: restrict document string length in logging to match max field length in django
This commit is contained in:
parent
e44cfef662
commit
94896278f0
@ -547,7 +547,7 @@ def set_log_entry(sender, document: Document, logging_group=None, **kwargs):
|
||||
content_type=ct,
|
||||
object_id=document.pk,
|
||||
user=user,
|
||||
object_repr=document.__str__(),
|
||||
object_repr=document.__str__()[:200],
|
||||
)
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user