mirror of
https://github.com/spiral-project/ihatemoney.git
synced 2025-04-28 17:32:38 +02:00
Update ihatemoney/history.py
Co-authored-by: Alexis Métaireau <alexis@notmyidea.org>
This commit is contained in:
parent
dae0038372
commit
64e55d399e
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue