For example if you have a model named Project and an admin model named
ProjectAdmin associated with eachother clicking on a project object will
display it as a Object(1) inside of the breadcrumbs. You can find the
breadcrumbs by the id of #breadcrumbs in the html code generated.
The documentation does mention something related to list_display using the
__str__ method but its not clear that it affects the breadcrumbs:
https://docs.djangoproject.com/en/2.1/ref/contrib/admin/#django.contrib.admin.ModelAdmin.list_display
But it is documented on stack overflow.
https://stackoverflow.com/questions/29286783/breadcrumb-displaying-object-
name-object-in-adminmodel-editor
--
Ticket URL: <https://code.djangoproject.com/ticket/29805>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* cc: Vishvajit Pathak (added)
--
Ticket URL: <https://code.djangoproject.com/ticket/29805#comment:1>
* status: new => closed
* resolution: => wontfix
* component: contrib.admin => Documentation
Comment:
I don't think it's something that must be documented. An experienced
Django user can take a look at the templates to see how things work.
--
Ticket URL: <https://code.djangoproject.com/ticket/29805#comment:2>
Comment (by Thomas Güttler):
Here is an other way to set breadcrumbs in django admin:
https://stackoverflow.com/a/58302208/633961
--
Ticket URL: <https://code.djangoproject.com/ticket/29805#comment:3>