-
-
Notifications
You must be signed in to change notification settings - Fork 137
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
base: master
Are you sure you want to change the base?
Conversation
Is there a reason that this PR has not been merged? Tests are passing and I don't see any discussion. |
+1 |
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) |
There was a problem hiding this comment.
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?
This allows using "get" as a form method for users who don't want to or can't use default "post".