fnp
/
django-ssify.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Unescape var values in render middleware.
[django-ssify.git]
/
ssify
/
middleware.py
diff --git
a/ssify/middleware.py
b/ssify/middleware.py
index
6b8b2ed
..
fc57eb0
100644
(file)
--- a/
ssify/middleware.py
+++ b/
ssify/middleware.py
@@
-188,4
+188,6
@@
class LocaleMiddleware(locale.LocaleMiddleware):
if (request.session.accessed and
(settings.USE_I18N or settings.USE_L10N)):
request.session.accessed = False
if (request.session.accessed and
(settings.USE_I18N or settings.USE_L10N)):
request.session.accessed = False
+ if not hasattr(request, 'ssi_patch_response'):
+ request.ssi_patch_response = []
request.ssi_patch_response.append(ssi_vary_on_cookie)
request.ssi_patch_response.append(ssi_vary_on_cookie)