Optimize the declaration of view actions #13550
Labels
status: accepted
This issue has been accepted for implementation
type: housekeeping
Changes to the application which do not directly impact the end user
Milestone
Proposed Changes
ActionsMixin
defines two attributes on a view:actions
- A tuple of support action namesaction_perms
- A dictionary mapping of action names to a set of required permissions for eachThe following actions are defined by default:
These can be combined into a single mapping:
Justification
This change will simplify the list of support actions for a view and reduce duplicate code.
The text was updated successfully, but these errors were encountered: