jayvdb / django-dunder

Django app to attach usable __repr__ and __str__ to any and all Django models, using unmigrated __unicode__ on Python 3
MIT License
2 stars 2 forks source link

str: Use <Foo x> when x is sufficient #9

Open jayvdb opened 4 years ago

jayvdb commented 4 years ago

Following https://github.com/jayvdb/django-dunder/issues/8 , if there is only one important attribute, the format could change from

<Foo: x> to <Foo x> and even simply x if x is a sufficiently descriptive attribute