id summary reporter owner description type status component version severity resolution keywords cc stage has_patch needs_docs needs_tests needs_better_patch easy ui_ux 17090 Problems with ModelAdmin.get_list_display() Julien Phalip nobody "While working on #16257 I've noticed some problems with the `ModelAdmin.get_list_display()` method that was introduced in r16340: * There is an inconsistency with `list_display`. If you set `list_display` to `('bacon', 'cheese',)` then `get_list_display()` will return `('action_checkbox', 'bacon', 'cheese',)`. * The presence (or absence) of the action checkbox should be dictated solely by the presence (or absence) of `ModelAdmin.actions`, not by what is returned by `get_list_display()`. The attached patch rectifies this behavior by injecting 'action_checkbox' further downstream after 'get_list_display()' is called. This would be a minor backwards-incompatibility for those who have been using the still-unreleased 'get_list_display()' method." Bug closed contrib.admin dev Normal fixed Ready for checkin 1 0 0 0 0 0