From c2867dcde65b5291a8602c6ead7e182ee37a5bb3 Mon Sep 17 00:00:00 2001 From: Rodolphe Breard Date: Fri, 9 Nov 2018 20:04:33 +0300 Subject: [PATCH] Stop using a hard-coded value for the NSFW cookie If the value of KHAGANAT_NSFW_OK does not include the hard-coded value, the NSFW cookie fails to work. --- nsfw/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nsfw/views.py b/nsfw/views.py index 6415dcc..073b668 100644 --- a/nsfw/views.py +++ b/nsfw/views.py @@ -44,7 +44,7 @@ def enable_view(request, max_age): else: response.set_cookie( settings.KHAGANAT_NSFW_NAME, - 'true', + settings.KHAGANAT_NSFW_OK[0], max_age=max_age ) return response