title: How to correctly do HttpResponseRedirect with reverse?
body: <p>I am getting an error "_reverse_with_prefix() argument after * must be a sequence, not int" when I try to reverse.  I previously hardcoded the parameter in the view but am trying to make it dynamic.  Any advice?</p>
  
  <p>View:</p>
  
  <pre><code>def add_review(request, product_id):
      p = get_object_or_404(Product, pk=product_id)
      if request.method == 'POST':
          form = ReviewForm(request.POST)
          if form.is_valid():
              form.save()
              #HARDCODED: return HttpResponseRedirect('/products/1/reviews/')
              return HttpResponseRedirect(reverse('view_reviews', args=(p.id)))
      else:
          form = ReviewForm()
      variables = RequestContext(request, {'form': form})
      return render_to_response('reserve/templates/create_review.html', variables)        
  
  
  def view_reviews(request, product_id):
      product = get_object_or_404(Product, pk=product_id)
      reviews = Review.objects.filter(product_id=product_id)
      return render_to_response('reserve/templates/view_reviews.html', {'product':product, 'reviews':reviews},
      context_instance=RequestContext(request))
  
  
  urlpatterns = patterns('reserve.views',
      url(r'^clubs/$', 'index'),
      url(r'^products/(?P&lt;product_id&gt;\d+)/reviews/$', 'view_reviews'),
      url(r'^products/(?P&lt;product_id&gt;\d+)/add_review/$', 'add_review'),
      url(r'^admin/', include(admin.site.urls)),
  )
  </code></pre>