From b66f11dedfc86dfd35b09b0d0c86f0d8f60bf412 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Fri, 14 Jan 2011 23:49:17 -0600 Subject: Clean up news redirect argument Signed-off-by: Dan McGee --- news/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'news') diff --git a/news/views.py b/news/views.py index f3d7312..990ee15 100644 --- a/news/views.py +++ b/news/views.py @@ -56,7 +56,7 @@ def add(request): newsitem.author = request.user newsitem.slug = find_unique_slug(newsitem) newsitem.save() - return redirect(newsitem.get_absolute_url()) + return redirect(newsitem) else: form = NewsForm() return direct_to_template(request, 'news/add.html', { 'form': form }) -- cgit v1.2.3-24-g4f1b