[models] Add __str__ function for all serialized models (for debug)
This commit is contained in:
parent
d2ef02c2af
commit
a479d0c0ee
|
@ -40,6 +40,9 @@ class ModelSerializeMixin:
|
|||
return value
|
||||
return d
|
||||
|
||||
def __str__(self) -> str:
|
||||
return self.serialize().__str__()
|
||||
|
||||
|
||||
class Serial(TypeDecorator):
|
||||
"""Same as MariaDB Serial used for IDs"""
|
||||
|
|
Loading…
Reference in New Issue