diff options
author | Dan McGee <dan@archlinux.org> | 2011-01-14 23:49:17 -0600 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-01-14 23:49:17 -0600 |
commit | b66f11dedfc86dfd35b09b0d0c86f0d8f60bf412 (patch) | |
tree | 4984b594a6a166089b7e589e07658f65eefc320c /news | |
parent | 758476b547c4a4a86541923cd27fab4970060a5b (diff) |
Clean up news redirect argument
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'news')
-rw-r--r-- | news/views.py | 2 |
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 }) |