Disable cache in add comment
This commit is contained in:
parent
3a3c00de88
commit
cd248ef6b5
1
views.py
1
views.py
|
@ -598,6 +598,7 @@ def add_comment(request, post_id, parent_id):
|
||||||
connection.close()
|
connection.close()
|
||||||
|
|
||||||
response = HttpResponseRedirect(ref)
|
response = HttpResponseRedirect(ref)
|
||||||
|
response['Cache-Control'] = 'no-cache'
|
||||||
|
|
||||||
response.set_cookie('author', request.POST['author'], domain=blog.name, secure=True, httponly=False);
|
response.set_cookie('author', request.POST['author'], domain=blog.name, secure=True, httponly=False);
|
||||||
if request.POST['email'] != '':
|
if request.POST['email'] != '':
|
||||||
|
|
Loading…
Reference in New Issue
Block a user