diff --git a/shop/views.py b/shop/views.py index 9a4d3e46..07b153df 100644 --- a/shop/views.py +++ b/shop/views.py @@ -163,10 +163,7 @@ class ProductDetailView(LoginRequiredMixin, FormView, DetailView): return super(ProductDetailView, self).form_valid(form) def get_success_url(self): - return reverse_lazy( - 'shop:product_detail', - kwargs={'slug': self.get_object().slug} - ) + return Order.objects.get(user=self.request.user, open__isnull=False).get_absolute_url() class CoinifyRedirectView(TemplateView):