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)