summaryrefslogtreecommitdiff
path: root/news/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'news/views.py')
-rw-r--r--news/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/news/views.py b/news/views.py
index f3d7312f..990ee154 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 })