title: Why is my Django view decorator not getting the request passed to it?
body: <p>I have a setup looking something like this:</p>
  
  <pre><code>def foo_decorator(function):
      @wraps(function)
      def decorator(*args, **kwargs):
          print kwargs
          return function(*args, **kwargs)
  
      return decorator
  
  @foo_decorator
  def analytics(request, page_id, promotion_id):
      pass
  </code></pre>
  
  <p>Outputting:</p>
  
  <pre><code>{'promotion_id': u'11','page_id': u'119766481432558'}
  </code></pre>
  
  <p>Why is my decorator not getting <code>request</code> passed to it?</p>