Skip to content

Commit 05ec7c2

Browse files
committed
fix: update to_str_typed function to use __name__ for type representation
1 parent cc4d58a commit 05ec7c2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

dojo/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1971,7 +1971,7 @@ def mass_model_updater(model_type, models, function, fields, page_size=1000, ord
19711971

19721972
def to_str_typed(obj):
19731973
"""For code that handles multiple types of objects, print not only __str__ but prefix the type of the object"""
1974-
return f"{type(obj)}: {obj}"
1974+
return f"{type(obj).__name__}: {obj}"
19751975

19761976

19771977
def get_product(obj):

0 commit comments

Comments
 (0)