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

Enhancement: Support custom response for batch actions #207

Closed
7 tasks done
jowilf opened this issue Jun 6, 2023 · 0 comments · Fixed by #212
Closed
7 tasks done

Enhancement: Support custom response for batch actions #207

jowilf opened this issue Jun 6, 2023 · 0 comments · Fixed by #212
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@jowilf
Copy link
Owner

jowilf commented Jun 6, 2023

Enhance the @action decorator to support custom responses, such as redirects or rendering HTML pages, instead of just returning strings (related to #205)

Todo:

  • Add a custom_response flag to the @action decorator function (default: False).
  • Update submitAction() in list.js to handle custom responses.
  • Modify handle_action in the base admin class to support custom responses.
  • Ensure backward compatibility.
  • Include an example in custom_actions example
  • Add tests.
  • Update the documentation
@jowilf jowilf added enhancement New feature or request good first issue Good for newcomers labels Jun 6, 2023
@jowilf jowilf changed the title Enhancement: Add support for custom response for batch actions Enhancement: Support custom response for batch actions Jun 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant