From 0e84244db31727c9d42893d645c9540def87fd00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9gory=20Soutad=C3=A9?= Date: Sat, 2 Mar 2013 10:11:44 +0100 Subject: [PATCH] Returns to first page when adding a post --- views.py | 1 + 1 file changed, 1 insertion(+) diff --git a/views.py b/views.py index 96e589e..0592e9c 100644 --- a/views.py +++ b/views.py @@ -424,6 +424,7 @@ def add_post(request, blog_id): form.createPost(content, request.POST['text_tags']) s = Search() s.index_post(b, form.id) + request.session['cur_page'] = 0 return HttpResponseRedirect('/blog/' + blog_id) else: return HttpResponseRedirect('/blog/' + blog_id)