Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
Adrian Holovaty authored August 23, 2006

Showing 1 changed file with 4 additions and 1 deletion. Show diff stats Hide diff stats

  1. 5  django/contrib/flatpages/views.py
5  django/contrib/flatpages/views.py
@@ -3,6 +3,7 @@
3 3
 from django.shortcuts import get_object_or_404
4 4
 from django.http import HttpResponse
5 5
 from django.conf import settings
  6
+from django.core.xheaders import populate_xheaders
6 7
 
7 8
 DEFAULT_TEMPLATE = 'flatpages/default.html'
8 9
 
@@ -32,4 +33,6 @@ def flatpage(request, url):
32 33
     c = RequestContext(request, {
33 34
         'flatpage': f,
34 35
     })
35  
-    return HttpResponse(t.render(c))
  36
+    response = HttpResponse(t.render(c))
  37
+    populate_xheaders(request, response, FlatPage, f.id)
  38
+    return response

0 notes on commit 3460943

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