mirror of
https://github.com/django/django.git
synced 2025-08-19 18:20:31 +00:00
[1.8.x] Fixed #24426 -- Displayed admin actions panel when show_full_result_count=False.
Backport of 36a17be9f3
from master
This commit is contained in:
parent
4fa61e0e4f
commit
20bf320502
2 changed files with 2 additions and 1 deletions
|
@ -203,7 +203,7 @@ class ChangeList(object):
|
|||
self.show_full_result_count = self.model_admin.show_full_result_count
|
||||
# Admin actions are shown if there is at least one entry
|
||||
# or if entries are not counted because show_full_result_count is disabled
|
||||
self.show_admin_actions = self.show_full_result_count or bool(full_result_count)
|
||||
self.show_admin_actions = not self.show_full_result_count or bool(full_result_count)
|
||||
self.full_result_count = full_result_count
|
||||
self.result_list = result_list
|
||||
self.can_show_all = can_show_all
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue