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

add __str__ implementations to the sqlalchemy model classes #43

Closed
Wim-De-Clercq opened this issue Nov 5, 2018 · 0 comments
Closed

Comments

@Wim-De-Clercq
Copy link
Contributor

Wim-De-Clercq commented Nov 5, 2018

The def __str__(self) method will both make it nicer for logging, as well as enabling the classes to be used more easily with other frameworks like method caching which often relies on str(obj). The default __str__ implementation is not good enough for these usecases.
A lot of the model classes already have one, but not all.

Wim-De-Clercq added a commit to Wim-De-Clercq/skosprovider_sqlalchemy that referenced this issue Nov 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants