Redirect users to orders after generic payment is successful

This commit is contained in:
PCoder 2018-09-23 17:19:24 +02:00
parent ff993e32db
commit d99271f71d

View file

@ -826,7 +826,7 @@ class OrderConfirmationView(DetailView):
response = {
'status': True,
'redirect': (
reverse('hosting:virtual_machines')
reverse('hosting:orders')
if request.user.is_authenticated()
else reverse('datacenterlight:index')
),