title: Django 'function' object has no attribute 'get'
body: <p>I've run into this error:</p>
  
  <pre><code>'function' object has no attribute 'get'
  </code></pre>
  
  <p>Which looks like it is occurring with clickjacking</p>
  
  <p>Here is the full traceback</p>
  
  <pre><code>Request Method: GET
  Request URL: http://localhost:8000/weblog/categories/weekly/
  
  Django Version: 1.7
  Python Version: 2.7.6
  Installed Applications:
  ('django.contrib.admin',
   'django.contrib.auth',
   'django.contrib.contenttypes',
   'django.contrib.sessions',
   'django.contrib.messages',
   'django.contrib.staticfiles',
   'django.contrib.sites',
   'django.contrib.flatpages',
   'search',
   'coltrane',
   'tagging',
   'markdown')
  Installed Middleware:
  ('django.contrib.sessions.middleware.SessionMiddleware',
   'django.middleware.common.CommonMiddleware',
   'django.middleware.csrf.CsrfViewMiddleware',
   'django.contrib.auth.middleware.AuthenticationMiddleware',
   'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
   'django.contrib.messages.middleware.MessageMiddleware',
   'django.middleware.clickjacking.XFrameOptionsMiddleware')
  
  
  Traceback:
  File "/Library/Python/2.7/site-packages/django/core/handlers/base.py" in get_response
    204.                 response = middleware_method(request, response)
  File "/Library/Python/2.7/site-packages/django/middleware/clickjacking.py" in process_response
    31.         if response.get('X-Frame-Options', None) is not None:
  
  Exception Type: AttributeError at /weblog/categories/weekly/
  Exception Value: 'function' object has no attribute 'get'
  </code></pre>
  
  <p>My View and URL:</p>
  
  <pre><code>url(r'^(?P&lt;slug&gt;[-\w]+)/$', 'coltrane.views.category_detail', {},
      name='coltrane_category_detail'),
  
  def category_detail(request, slug):
  category = get_object_or_404(Category, slug=slug)
  return  ListView.as_view(queryset=category.live_entry_set(),
                           context_object_name={'category': category})
  </code></pre>