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

Translation #10

Open jayvdb opened 4 years ago

jayvdb commented 4 years ago

Model name and instance value translations are (mostly) possible with __str__. It probably isnt wise, but it can help with third-party apps that have hard-coded strings, especially Enums.

Probably need to understand the context that __str__ is being invoked.