summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-01-15 06:49:17 +0100
committerDan McGee <dan@archlinux.org>2011-01-15 06:49:17 +0100
commitb66f11dedfc86dfd35b09b0d0c86f0d8f60bf412 (patch)
tree4984b594a6a166089b7e589e07658f65eefc320c
parent758476b547c4a4a86541923cd27fab4970060a5b (diff)
downloadarchweb-b66f11dedfc86dfd35b09b0d0c86f0d8f60bf412.tar.gz
archweb-b66f11dedfc86dfd35b09b0d0c86f0d8f60bf412.tar.xz
Clean up news redirect argument
Signed-off-by: Dan McGee <dan@archlinux.org>
-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 })