Opened 9 years ago

Closed 9 years ago

Last modified 7 years ago

#10618 closed (fixed)

Admin Actions: Action form doesn't takes care whose submit button was pushed.

Reported by: Martin Mahner Owned by: nobody
Component: contrib.admin Version: 1.0
Severity: Keywords: action
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


If you have a action-bar on top and on bottom, the response_action function always reads the action from the bottom action-bar.

Attachments (1)

admin-actions-select-10618-1.diff (626 bytes) - added by Martin Mahner 9 years ago.

Download all attachments as: .zip

Change History (4)

Changed 9 years ago by Martin Mahner

comment:1 Changed 9 years ago by Jacob

milestone: 1.1
Triage Stage: UnreviewedAccepted

comment:2 Changed 9 years ago by Jacob

Resolution: fixed
Status: newclosed

(In [10408]) Made a bunch of improvements to admin actions. Be warned: this includes one minor but BACKWARDS-INCOMPATIBLE change.

These changes are:

  • BACKWARDS-INCOMPATIBLE CHANGE: action functions and action methods now share the same signature: (modeladmin, request, queryset). Actions defined as methods stay the same, but if you've defined an action as a standalone function you'll now need to add that first modeladmin argument.
  • The delete selected action is now a standalone function registered site-wide; this makes disabling it easy.
  • Fixed #10596: there are now official, documented AdminSite APIs for dealing with actions, including a method to disable global actions. You can still re-enable globally-disabled actions on a case-by-case basis.
  • Fixed #10595: you can now disable actions for a particular ModelAdmin by setting actions to None.
  • Fixed #10734: actions are now sorted (by name).
  • Fixed #10618: the action is now taken from the form whose "submit" button you clicked, not arbitrarily the last form on the page.
  • All of the above is documented and tested.

comment:3 Changed 7 years ago by Jacob

milestone: 1.1

Milestone 1.1 deleted

Note: See TracTickets for help on using tickets.
Back to Top