Ticket #10618: admin-actions-select-10618-1.diff

File admin-actions-select-10618-1.diff, 626 bytes (added by Martin Mahner, 16 years ago)
  • django/contrib/admin/options.py

    diff --git a/django/contrib/admin/options.py b/django/contrib/admin/options.py
    index 8cc27c5..004f59c 100644
    a b class ModelAdmin(BaseModelAdmin):  
    678678        data = request.POST.copy()
    679679        data.pop(helpers.ACTION_CHECKBOX_NAME, None)
    680680        data.pop("index", None)
     681        # Get the action whose button was pushed
     682        data.update({'action': data.getlist('action')[action_index]})
    681683        action_form = self.action_form(data, auto_id=None)
    682684        action_form.fields['action'].choices = self.get_action_choices(request)
    683685
Back to Top