darklow / django-suit

Modern theme for Django admin interface
http://djangosuit.com/
Other
2.32k stars 704 forks source link

Actions form is disappeared under the list when I set `show_full_result_count = False` for a model admin. #761

Open Ibrohimbek opened 4 years ago

Ibrohimbek commented 4 years ago

I wanted to switch of counting for a big model in the admin panel. When I set show_full_result_count = False for the model admin actions form disappeared from the list page. I think this a bug. The form does not disappear in this case with standard Django admin. Then I found these lines from the source:

{% if action_form and actions_on_top and cl.full_result_count %}
  {% admin_actions %}{% endif %}
{% result_list_with_context cl %}

{% if action_form and actions_on_bottom and cl.full_result_count %}
  {% admin_actions %}{% endif %}

Could you please take out for checking for full_results_count on adding admin actions?