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:
parent
1e894853c8
commit
c2867dcde6
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ def enable_view(request, max_age):
|
||||||
else:
|
else:
|
||||||
response.set_cookie(
|
response.set_cookie(
|
||||||
settings.KHAGANAT_NSFW_NAME,
|
settings.KHAGANAT_NSFW_NAME,
|
||||||
'true',
|
settings.KHAGANAT_NSFW_OK[0],
|
||||||
max_age=max_age
|
max_age=max_age
|
||||||
)
|
)
|
||||||
return response
|
return response
|
||||||
|
|
Loading…
Reference in a new issue