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.
This commit is contained in:
Rodolphe Breard 2018-11-09 20:04:33 +03:00
parent 1e894853c8
commit c2867dcde6

View file

@ -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