return to order details after adding product to order
This commit is contained in:
parent
a49168e95c
commit
2e079732cf
|
@ -163,10 +163,7 @@ class ProductDetailView(LoginRequiredMixin, FormView, DetailView):
|
||||||
return super(ProductDetailView, self).form_valid(form)
|
return super(ProductDetailView, self).form_valid(form)
|
||||||
|
|
||||||
def get_success_url(self):
|
def get_success_url(self):
|
||||||
return reverse_lazy(
|
return Order.objects.get(user=self.request.user, open__isnull=False).get_absolute_url()
|
||||||
'shop:product_detail',
|
|
||||||
kwargs={'slug': self.get_object().slug}
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
class CoinifyRedirectView(TemplateView):
|
class CoinifyRedirectView(TemplateView):
|
||||||
|
|
Loading…
Reference in a new issue