Changes between Initial Version and Version 1 of Ticket #31434
- Timestamp:
- Apr 7, 2020, 3:22:15 PM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #31434
- Property Resolution → wontfix
- Property Status assigned → closed
- Property Type Uncategorized → New feature
-
Ticket #31434 – Description
initial v1 1 The default ** __str__() ** function provides a rather impractical output and almost every time the developer has to change it to get the summary of the model. I suggest a more elaborate default __str__() function which outputs the field names with their datatypes(A skeletal schema).Maybe it could also print the complete data with the field name and their values?1 The default `__str__()` function provides a rather impractical output and almost every time the developer has to change it to get the summary of the model. I suggest a more elaborate default `__str__()` function which outputs the field names with their datatypes(A skeletal schema). Maybe it could also print the complete data with the field name and their values? 2 2 This is an example of what it could output. 3 3 4 ---- 5 4 {{{ 6 5 <QuerySet [ 7 6 <Question: (<django.db.models.fields.AutoField: id>, <django.db.models.fields.CharField: question_text>, <django.db.models.fields.DateTimeField: pub_date>) object (1)> ]> 7 }}} 8 8 9 ----10