summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--news/views.py2
1 files changed, 1 insertions, 1 deletions
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 })