Set success_url based on flow: hosting vs landing

This commit is contained in:
PCoder 2019-07-01 20:28:26 +05:30
parent 207c3a6c6c
commit c35bc79c5c

View file

@ -262,3 +262,6 @@ 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)