Update ihatemoney/history.py

Co-authored-by: Alexis Métaireau <alexis@notmyidea.org>
This commit is contained in:
Jojo144 2024-12-25 23:21:10 +01:00 committed by Alexis Métaireau
parent 2f099674ed
commit e00c39a62c

View file

@ -38,7 +38,7 @@ def history_sort_key(history_item_dict):
def describe_version(version_obj):
"""Use the base model str() function to describe a version object"""
if version_obj is None:
if not version_obj:
return ""
else:
return parent_class(type(version_obj)).__str__(version_obj)