Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor printing user name and email pair as __str__() #295

Closed
arturtamborski opened this issue Aug 7, 2019 · 1 comment

Comments

@arturtamborski
Copy link
Contributor

commented Aug 7, 2019

I've noticed that we're using the same python format string f{drive.first_name} {drive.last_name} in multiple places so I thought it would be cool to replace all these occurrences with just a simple f{drive} by modifying the __str__() function works for User model.

@arturtamborski

This comment has been minimized.

Copy link
Contributor Author

commented Aug 12, 2019

arturtamborski added a commit that referenced this issue Aug 21, 2019

#295 Refactor printing user name & driver name (#325)
* Replace use of first_name/last_name with implicit __str__()

* Convert passenger and driver to str before passing to export functions

* Fix build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.