Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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
adrianholovaty committed Aug 23, 2006
1 parent 3cfc8bb commit 3460943
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion django/contrib/flatpages/views.py
Expand Up @@ -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'

Expand Down Expand Up @@ -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.