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

Implement bulk actions for form submissions #11847

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

rohitsrma
Copy link
Contributor

Fixes #8182

ezgif com-video-to-gif-converter

Copy link

squash-labs bot commented Apr 13, 2024

Manage this branch in Squash

Test this branch here: https://rohitsrmaimplement-bulk-action-g2x2y.squash.io

@rohitsrma

This comment was marked as resolved.

@rohitsrma
Copy link
Contributor Author

I've made progress with my FormSubmissionBulkAction class by updating it as follows:

class FormSubmissionBulkAction(BulkAction):
    
    @classproperty
    def models(cls):
        page = Page.objects.get(id=70).specific
        submission_class = page.get_submission_class()
        return [submission_class]

This works well for both FormSubmission and CustomFormSubmission when I manually provide the ID of the form page. But, I'm not sure how we can automatically fetch the page ID within the FormSubmissionBulkAction class, similar to how we do it in our views.

@gasman / @laymonage , could you please provide some guidance on how I can retrieve the form page information within my FormSubmissionBulkAction class?

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

Successfully merging this pull request may close these issues.

Implement bulk actions for form submissions / responses - form builder
1 participant