Commits

Chris Moffitt committed 6894eb1

Fix the syntax in some views that was causing problems with Debu toolbar. Closes #925

Comments (0)

Files changed (1)

satchmo/apps/product/views/__init__.py

     ctx = {
         'categorylist' : cats,
     }
-    return render_to_response(template, RequestContext(request, ctx))
+    return render_to_response(template, context_instance=RequestContext(request, ctx))
 
 def category_view(request, slug, parent_slugs='', template='product/category.html'):
     """Display the category, its child categories, and its products.
         'products' : products,
     }
     index_prerender.send(Product, request=request, context=ctx, category=category, object_list=products)
-    return render_to_response(template, RequestContext(request, ctx))
+    return render_to_response(template, context_instance=RequestContext(request, ctx))
 
 
 def display_featured(num_to_display=NOTSET, random_display=NOTSET):