title: view_func.__module__ suddenly broken
body: <p>I have a <strong>process_view</strong> middleware that sets the module and view names into the request like this:</p>
  
  <pre><code>class ViewName( object ):
      def process_view( self, request, view_func, view_args, view_kwargs ):
          request.module_name = view_func.__module__
          request.view_name = view_func.__name__
  </code></pre>
  
  <p>I use the names together as a key for session based pagination.</p>
  
  <p>But as of yesterday, for reasons I am unable to discover,
  <strong>view_func.__module__</strong> now returns 'cp.models', which is a model file in
  one of my apps.</p>
  
  <p>I've gone back one commit at a time trying to find the cause.  The issue is still there even after reverting code to more than a month ago.</p>
  
  <p>I'm seeing only two python packages changed recently on the server, my app uses neither, and the updates were more than a month ago:</p>
  
  <pre><code>cat /var/log/dpkg.log*|grep "upgrade" |grep python
  2013-01-25 03:41:05 upgrade python-problem-report 2.0.1-0ubuntu15.12.0.1-0ubuntu17.1
  2013-01-25 03:41:06 upgrade python-apport 2.0.1-0ubuntu15.1 2.0.1-0ubuntu17.1
  </code></pre>
  
  <p>I also tried rearranging my middleware list, didn't help.</p>
  
  <p>Any idea what else might be causing this issue?</p>