title: object() takes no parameters in django 1.10
body: <p>I'm trying to allow CORS in my app, so that my cross-domain javascript client can access my API, I've installed <a href="https://github.com/ottoyiu/django-cors-headers" rel="noreferrer">django-cors-headers</a>. And I'm now trying to add the middleware:</p>
  
  <pre><code>MIDDLEWARE = [
      'corsheaders.middleware.CorsMiddleware', # Remove this and it works
      'django.middleware.security.SecurityMiddleware',
      'django.contrib.sessions.middleware.SessionMiddleware',
      'django.middleware.common.CommonMiddleware',
      'django.middleware.csrf.CsrfViewMiddleware',
      'django.contrib.auth.middleware.AuthenticationMiddleware',
      'django.contrib.messages.middleware.MessageMiddleware',
      'django.middleware.clickjacking.XFrameOptionsMiddleware',
  ]
  </code></pre>
  
  <p>However this gives me a TypeError:</p>
  
  <blockquote>
    <p>TypeError: object() takes no parameters</p>
  </blockquote>
  
  <p>This worked fine before the django 1.10 update. Any ideas?</p>