diff --git a/the_works/models.py b/the_works/models.py index 9548a35..a188895 100644 --- a/the_works/models.py +++ b/the_works/models.py @@ -11,7 +11,8 @@ def _asdict(self): if type(col.type) == db.types.BLOB: d[col.key] = "Blob (NULL)" if self.__getattribute__(col.key) == None else f"Blob ({sys.getsizeof(self.__getattribute__(col.key))} Bytes)" else: - d[col.key] = self.__getattribute__(col.key) + value = str(self.__getattribute__(col.key)) + d[col.key] = value[:50] + '...' if len(value) > 50 else value return d db.Model._asdict = _asdict