Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #13472 - Fixed minor regression in admin actions template intro…

…duced in r12968. Thanks for the report, Carl Meyer.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@13099 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 9bdd17579da1523db43ddcafb0bb868197478fa2 1 parent 7ebf105
Jannis Leidel authored
2  django/contrib/admin/templates/admin/actions.html
@@ -3,7 +3,7 @@
3 3
     {% for field in action_form %}{% if field.label %}<label>{{ field.label }} {% endif %}{{ field }}{% if field.label %}</label>{% endif %}{% endfor %}
4 4
     <button type="submit" class="button" title="{% trans "Run the selected action" %}" name="index" value="{{ action_index|default:0 }}">{% trans "Go" %}</button>
5 5
     {% if actions_selection_counter %}
6  
-        <script type="text/javascript">var _actions_icnt={{ cl.result_count|default_if_none:"0" }};</script>
  6
+        <script type="text/javascript">var _actions_icnt="{{ cl.result_list|length|default:"0" }}";</script>
7 7
         <span class="action-counter">{{ selection_note }}</span>
8 8
         {% if cl.result_count != cl.result_list|length %}
9 9
         <span class="all">{{ selection_note_all }}</span>

0 notes on commit 9bdd175

Please sign in to comment.
Something went wrong with that request. Please try again.