Skip to content

Commit

Permalink
Made User __str__() to match actual attribute names (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
AstroCB committed Jul 14, 2020
1 parent 6d6bdaa commit 6d72d75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions venmo_api/models/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,6 @@ def from_json(cls, json, is_profile=False):
is_active=parser.get_is_active())

def __str__(self):
return f'id: {self.id}, username: {self.username}, firstname: {self.first_name}, lastname: {self.last_name}'\
f' display_name: {self.display_name}, phone: {self.phone}, picture: {self.profile_picture_url}, about: {self.about},'\
return f'id: {self.id}, username: {self.username}, first_name: {self.first_name}, last_name: {self.last_name}'\
f' display_name: {self.display_name}, phone: {self.phone}, profile_picture_url: {self.profile_picture_url}, about: {self.about},'\
f' joined: {self.date_joined}, is_group: {self.is_group}, is_active: {self.is_active}'

0 comments on commit 6d72d75

Please sign in to comment.