Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed #2581 -- Added populate_xheaders() call to flatpage view. Thank…

…s for the patch, dummy@habmalnefrage.de

git-svn-id: http://code.djangoproject.com/svn/django/trunk@3650 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 34609438bbaf7881b610948eda791fa928ccec36 1 parent 3cfc8bb
@adrianholovaty adrianholovaty authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 django/contrib/flatpages/views.py
View
5 django/contrib/flatpages/views.py
@@ -3,6 +3,7 @@
from django.shortcuts import get_object_or_404
from django.http import HttpResponse
from django.conf import settings
+from django.core.xheaders import populate_xheaders
DEFAULT_TEMPLATE = 'flatpages/default.html'
@@ -32,4 +33,6 @@ def flatpage(request, url):
c = RequestContext(request, {
'flatpage': f,
})
- return HttpResponse(t.render(c))
+ response = HttpResponse(t.render(c))
+ populate_xheaders(request, response, FlatPage, f.id)
+ return response
Please sign in to comment.
Something went wrong with that request. Please try again.