Author: adrian
Date: 2006-08-22 21:05:05 -0500 (Tue, 22 Aug 2006)
New Revision: 3650
Modified:
django/trunk/django/contrib/flatpages/views.py
Log:
Fixed #2581 -- Added populate_xheaders() call to flatpage view. Thanks for the
patch, [EMAIL PROTECTED]
Modified: django/trunk/django/contrib/flatpages/views.py
===================================================================
--- django/trunk/django/contrib/flatpages/views.py 2006-08-22 17:45:21 UTC
(rev 3649)
+++ django/trunk/django/contrib/flatpages/views.py 2006-08-23 02:05:05 UTC
(rev 3650)
@@ -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 @@
c = RequestContext(request, {
'flatpage': f,
})
- return HttpResponse(t.render(c))
+ response = HttpResponse(t.render(c))
+ populate_xheaders(request, response, FlatPage, f.id)
+ return response
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates
-~----------~----~----~----~------~----~------~--~---