Skip to content

Commit 47fb74e

Browse files
committed
Add __str__ to AmazonProduct
1 parent 5b93e80 commit 47fb74e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

amazon/api.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -675,6 +675,13 @@ def __init__(self, item, aws_associate_tag, api, *args, **kwargs):
675675
self.parent = None
676676
self.region = kwargs.get('region', 'US')
677677

678+
def __str__(self):
679+
"""Return redable representation.
680+
681+
Uses the item's title.
682+
"""
683+
return self.title
684+
678685
@property
679686
def price_and_currency(self):
680687
"""Get Offer Price and Currency.

0 commit comments

Comments
 (0)