1
0
mirror of https://github.com/django/django.git synced 2025-10-24 14:16:09 +00:00

Fixing #26524 -- Made a foreign key id reference in ModelAdmin.list_display display the id.

This commit is contained in:
krishbharadwaj
2016-04-23 23:05:18 +05:30
committed by Tim Graham
parent c8d2120b06
commit f6681393d3
5 changed files with 36 additions and 2 deletions

View File

@@ -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