Skip to content
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...
1 parent 3cfc8bb commit 34609438bbaf7881b610948eda791fa928ccec36 @adrianholovaty adrianholovaty committed
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

0 comments on commit 3460943

Please sign in to comment.
Something went wrong with that request. Please try again.