diff --git a/app/models/__init__.py b/app/models/__init__.py index 8b9cfabf..c5e58dbf 100644 --- a/app/models/__init__.py +++ b/app/models/__init__.py @@ -95,6 +95,8 @@ class AuditLogEntry(db.Model): def __init__(self, causer, severity, title, url, package=None, description=None): if len(title) > 100: + if description is None: + description = title[99:] title = title[:99] + "…" self.causer = causer