You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rocio Aramberri edited this page May 24, 2020
·
5 revisions
It is recommended to define an __str__ method within your models. The __str__ method is used whenever str(model_object) is called. Django calls str(model_object) in multiple places, one of those being the Django Admin, if you haven't set up your __str__ method the Django Admin will show something like: [object Object] as the value.