-
-
Notifications
You must be signed in to change notification settings - Fork 400
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
Model printing requires the output of the primary key value #1342
Labels
enhancement
New feature or request
Comments
That would be great! All other ORMs in comparison already have this feature. |
Agree would be nice to see. |
PR welcome |
7 tasks
I'll leave the PR here. |
I notice that there is |
I thought repr should not affect str when refactored by the user, so I didn't call repr. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your feature request related to a problem? Please describe.
When I print a model,I can only got model's name.
The str function should have the same logic as the repr function.
In the past, every time I printed a model, I had to print an extra pk field.
Describe alternatives you've considered
Rewrite the Model's function:str
like:
The text was updated successfully, but these errors were encountered: