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

Support for GET form method #101

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

eriktelepovsky
Copy link

This allows using "get" as a form method for users who don't want to or can't use default "post".

<form method="get" ...

@rixx
Copy link
Contributor

rixx commented Nov 8, 2018

Is there a reason that this PR has not been merged? Tests are passing and I don't see any discussion.

@eriktelepovsky
Copy link
Author

+1

@claudep
Copy link
Contributor

claudep commented Nov 9, 2018

I don't see any tests nor documentation about the new functionality. These are required.

The wizard will render either the current step (if form validation
wasn't successful), the next step (if the current step was stored
successful) or the done view (if no more steps are available)
"""
# Look for a wizard_goto_step element in the posted data which
# contains a valid step name. If one was found, render the requested
# form. (This makes stepping back a lot easier).
wizard_goto_step = self.request.POST.get('wizard_goto_step', None)
wizard_goto_step = getattr(self.request, self.form_method).get('wizard_goto_step', None)
Copy link

@ShaheedHaque ShaheedHaque May 12, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm a bit confused as to how this is supposed to work. By ignoring the actual request.method and forcing the use of self.form_method here an in the next couple of places it is used, isn't the code saying that ALL form interaction can only use self.form_method? Specifically, stepping forward and the final submit cannot use a POST if self.form_method is set to 'GET'.

Or have I not understood the purpose of self.form_method?

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.

4 participants