Browse files

Make redirection URL after modifying cart configurable

  • Loading branch information...
1 parent 7d00727 commit fce185e5a1c528b0e059a875eaa5724292827bc7 @matthiask matthiask committed Jan 20, 2011
Showing with 3 additions and 2 deletions.
  1. +3 −2 plata/shop/views.py
View
5 plata/shop/views.py
@@ -163,7 +163,8 @@ def get_context(self, request, context):
def product_detail(self, request, product, context=None,
template_name='product/product_detail.html',
template_form_name='form',
- template_object_name='object'):
+ template_object_name='object',
+ redirect_to='plata_shop_cart'):
OrderItemForm = self.order_modify_item_form(request, product)
@@ -186,7 +187,7 @@ def product_detail(self, request, product, context=None,
order.recalculate_total()
- return HttpResponseRedirect('.')
+ return redirect(redirect_to)
else:
form = OrderItemForm()

0 comments on commit fce185e

Please sign in to comment.