From 7752e62dce8c77e09c6d09b1a82028b818c95792 Mon Sep 17 00:00:00 2001 From: James Turk Date: Wed, 7 Apr 2010 17:07:41 -0400 Subject: [PATCH] fixed redirect view --- markupwiki/views.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/markupwiki/views.py b/markupwiki/views.py index ef22d88..c1d533c 100644 --- a/markupwiki/views.py +++ b/markupwiki/views.py @@ -176,12 +176,11 @@ def rename(request, title): ''' POST-only view to rename article ''' article = get_object_or_404(Article, title=title) new_title = request.POST['new_title'] - article.title = new_title - print new_title + article.title = new_title.replace(' ', '_') article.save() new_article = Article.objects.create(title=title, creator=request.user, redirect_to=article) - return redirect(new_article) + return redirect(article) @title_check def article_history(request, title):