Open Chise1 opened 1 year ago
That would be great! All other ORMs in comparison already have this feature.
Agree would be nice to see.
PR welcome
I'll leave the PR here.
I notice that there is __repr__
has the behavior
I thought repr should not affect str when refactored by the user, so I didn't call repr.
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: