Remove deprecated xheaders.

See django/django@64e11a68 for more information
This commit is contained in:
Andrei Fokau 2013-11-17 19:16:10 +01:00
parent 7bcbacfb37
commit 87d7c973a1

View File

@ -1,10 +1,10 @@
# coding=utf-8
from django.contrib.flatpages.models import FlatPage from django.contrib.flatpages.models import FlatPage
from django.contrib.flatpages.views import DEFAULT_TEMPLATE from django.contrib.flatpages.views import DEFAULT_TEMPLATE
from django.shortcuts import get_object_or_404 from django.shortcuts import get_object_or_404
from django.http import HttpResponse, HttpResponseRedirect from django.http import HttpResponse, HttpResponseRedirect
from django.conf import settings from django.conf import settings
from django.core.xheaders import populate_xheaders
from django.utils.safestring import mark_safe from django.utils.safestring import mark_safe
from django.views.decorators.csrf import csrf_protect from django.views.decorators.csrf import csrf_protect
@ -51,5 +51,4 @@ def flatpage(request, url):
'flatpage': f, 'flatpage': f,
}) })
response = HttpResponse(t.render(c)) response = HttpResponse(t.render(c))
populate_xheaders(request, response, FlatPage, f.id)
return response return response