summaryrefslogtreecommitdiff
path: root/news/views.py
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@kiwwwi.com.ar>2011-01-19 00:42:18 -0300
committerNicolás Reynolds <fauno@kiwwwi.com.ar>2011-01-19 00:42:18 -0300
commit27d7ccd7a928da74a881cf4fbd508e23613780fa (patch)
treeebed6ca44c1a5512b272685234ddfbb76fba76d8 /news/views.py
parent755a03d279631138cb982dc07b2d67b341a4f99c (diff)
parent523a15f81e819379d1d9ae8412ebd8a7c017a512 (diff)
Merge branch 'master' of git://projects.archlinux.org/archweb
Conflicts: templates/devel/clock.html templates/packages/group_details.html templates/packages/groups.html
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 })