Refs #765 -- Display warning if cookies are blocked

This commit is contained in:
Raphael Michel
2018-02-01 16:24:35 +01:00
parent e469b2e6ad
commit 989282ffbe
4 changed files with 35 additions and 3 deletions

View File

@@ -274,6 +274,11 @@ class EventIndex(EventViewMixin, CartMixin, TemplateView):
)
)
context['cookie_warning'] = (
'require_cookie' in self.request.GET and
settings.SESSION_COOKIE_NAME not in self.request.COOKIES
)
return context