Set success_url from session and call super post method
This commit is contained in:
parent
c8c5bb763a
commit
561178e473
1 changed files with 2 additions and 2 deletions
|
@ -263,5 +263,5 @@ class AskSSHKeyView(SSHKeyCreateView):
|
|||
return render(request, self.template_name, context)
|
||||
|
||||
def post(self, request, *args, **kwargs):
|
||||
self.success_url = self.request.get("order_confirm_url")
|
||||
return super(AskSSHKeyView, self)
|
||||
self.success_url = self.request.session.get("order_confirm_url")
|
||||
return super(AskSSHKeyView, self).post(self, request, *args, **kwargs)
|
Loading…
Reference in a new issue