X-Git-Url: https://git.mdrn.pl/django-ssify.git/blobdiff_plain/64c5163e7aead7eb60951e040998ade343c079c5..e89d22d4e7a6d5846fe964851b0f1a209bf0a521:/ssify/middleware.py?ds=sidebyside diff --git a/ssify/middleware.py b/ssify/middleware.py index 6b8b2ed..fc57eb0 100644 --- 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 not hasattr(request, 'ssi_patch_response'): + request.ssi_patch_response = [] request.ssi_patch_response.append(ssi_vary_on_cookie)