mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Fixing #26524 -- Made a foreign key id reference in ModelAdmin.list_display display the id.
This commit is contained in:
parent
c8d2120b06
commit
f6681393d3
5 changed files with 36 additions and 2 deletions
|
@ -253,6 +253,10 @@ Miscellaneous
|
|||
* CSRF failures are logged to the ``django.security.csrf ``` logger instead of
|
||||
``django.request``.
|
||||
|
||||
* Using a foreign key's id (e.g. ``'field_id'``) in ``ModelAdmin.list_display``
|
||||
displays the related object's ID instead of ``repr(object)``. Remove the
|
||||
``_id`` suffix if you want the ``repr()``.
|
||||
|
||||
.. _deprecated-features-1.11:
|
||||
|
||||
Features deprecated in 1.11
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue