Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add FSM actions to ModelAdmin changelist actions #36

Open
blueyed opened this issue Sep 8, 2015 · 0 comments
Open

Add FSM actions to ModelAdmin changelist actions #36

blueyed opened this issue Sep 8, 2015 · 0 comments

Comments

@blueyed
Copy link

blueyed commented Sep 8, 2015

It would be useful to have an admin action with changelists to perform transition changes (e.g. soft-deletion) on a list of selected objects (e.g. locks), similar to the submit buttons on the detail view.

This could be handled via ModelAdmin's actions.

The list would contain any possible target transition, or just the valid ones according to the existing/listed objects (from the queryset).
(It might be even possible to only provide valid choices in the dropdown, by using JS and looking at the selected objects, but that's not that trivial then anymore)

I see that this might result in trying to apply invalid transitions, but in this case these could just get skipped (with a message/notification).

@blueyed blueyed changed the title admin: add FSM actions (e.g. soft-delete etc) to dropdown actions admin: add FSM actions to ModelAdmin changelist actions Sep 8, 2015
@blueyed blueyed changed the title admin: add FSM actions to ModelAdmin changelist actions Add FSM actions to ModelAdmin changelist actions Sep 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant