From 4639e7754989eab272646fe4397080e1cb33b337 Mon Sep 17 00:00:00 2001 From: Oskar Hahn Date: Sat, 3 Sep 2011 18:35:19 +0200 Subject: [PATCH] apply link redirect to edit-form, if it was a new form --- openslides/agenda/views.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openslides/agenda/views.py b/openslides/agenda/views.py index f7e8d69be..1254776b6 100644 --- a/openslides/agenda/views.py +++ b/openslides/agenda/views.py @@ -217,6 +217,8 @@ def edit(request, item_id=None, form='ItemText', default=None): item.application.writelog(_('Agenda item modified'), request.user) if not 'apply' in request.POST: return redirect(reverse('item_overview')) + if item_id is None: + return redirect(reverse('item_edit', args=[item.id])) else: messages.error(request, _('Please check the form for errors.')) else: