Commits

Cristian Ciupitu committed 2f70156

Fix the syntax in other places were it was causing problems with the Debug toolbar. Closes #925

Comments (0)

Files changed (6)

satchmo/apps/product/views/filters.py

     ctx = RequestContext(request, {
         'products' : bestsellers(count),
     })
-    return render_to_response(template, ctx)
+    return render_to_response(template, context_instance=ctx)
         
 def display_recent(request, page=0, count=0, template='product/recently_added.html'):
     """Display a list of recently added products."""
         'page' : currentpage,
         'paginator' : paginator,
     })
-    return render_to_response(template, ctx)
+    return render_to_response(template, context_instance=ctx)

satchmo/apps/satchmo_store/shop/views/cart.py

         'default_view_tax' : default_view_tax,
         'sale' : sale,
         })
-    return render_to_response('shop/cart.html', context)
+    return render_to_response('shop/cart.html', context_instance=context)
     
 display = never_cache(display)
 
     else:
         form = forms.MultipleProductForm(products=products)
 
-    return render_to_response(template, RequestContext(request, {'form' : form}))
+    return render_to_response(template, context_instance=RequestContext(request, {'form' : form}))
 
 def agree_terms(request):
     """Agree to terms"""

satchmo/apps/satchmo_store/shop/views/download.py

         url = urlresolvers.reverse('satchmo_download_send', kwargs= {'download_key': download_key})
         context = RequestContext(request, {'download_product': dl_product,
                                             'dl_url' : url})
-        return render_to_response('shop/download.html', context)
+        return render_to_response('shop/download.html', context_instance=context)
    
 def send_file(request, download_key):
     """

satchmo/apps/satchmo_store/shop/views/home.py

         'paginator' : paginator
     })
     
-    return render_to_response(template, ctx)
+    return render_to_response(template, context_instance=ctx)
     

satchmo/apps/satchmo_store/shop/views/orders.py

         'default_view_tax': config_value('TAX', 'DEFAULT_VIEW_TAX'),
         'orders' : orders})
 
-    return render_to_response('shop/order_history.html', ctx)
+    return render_to_response('shop/order_history.html', context_instance=ctx)
 
 order_history = login_required(order_history)
 
         'contact' : contact,
         'order' : order})
 
-    return render_to_response('shop/order_tracking.html', ctx)
+    return render_to_response('shop/order_tracking.html', context_instance=ctx)
 
 order_tracking = login_required(order_tracking)

satchmo/apps/satchmo_store/shop/views/search.py

             'results': results,
             'category' : category,
             'keywords' : keywords})
-    return render_to_response(template, context)
+    return render_to_response(template, context_instance=context)