This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def get(self, request, *args, **kwargs): | |
| form_id = request.GET.get('uid', '') | |
| if form_id and is_valid(form_id): | |
| #get the form and check if it is valid. I restore the data to a variable called data | |
| self.storage.reset() | |
| self.storage.data = data | |
| self.storage.current_step = self.steps.last | |
| result = self.render(self.get_form()) | |
| else: | |
| result = super(MySuperWizard, self).get(request, *args, **kwargs) |