Opened 14 years ago

Closed 14 years ago

#14742 closed (invalid)

Allow each action to decide default value for select_across

Reported by: curtis@… Owned by: nobody
Component: contrib.admin Version: 1.3-alpha
Severity: Keywords: admin, actions
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

It seems the "select_across" option in Admin actions is under-utilised [e.g. not at all].

It would allow an action to not require any selected items, instead operating on all matching the current filter spec.

However, because of a duplicate check it never gets the chance.

The attached patch removes the check, changes select_across to NullBooleanField, with Null as default, and will set it to the select_across property of the selected action if it has one, or False otherwise.

Attachments (1)

select_across.patch (2.1 KB ) - added by curtis@… 14 years ago.

Download all attachments as: .zip

Change History (2)

by curtis@…, 14 years ago

Attachment: select_across.patch added

comment:1 by curtis@…, 14 years ago

Resolution: invalid
Status: newclosed

Thanks to SmileyChris for making me realise I'd misunderstood the code.

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