From ecfeb170f383b3bcf86360f1a3776f2615f3cef9 Mon Sep 17 00:00:00 2001 From: Oskar Hahn Date: Fri, 27 Jul 2012 22:49:38 +0200 Subject: [PATCH] we can not redirect from a poll, that does not exists to an assignment. --- openslides/assignment/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openslides/assignment/views.py b/openslides/assignment/views.py index e0016fa8c..03bd55516 100644 --- a/openslides/assignment/views.py +++ b/openslides/assignment/views.py @@ -250,7 +250,7 @@ def set_publish_status(request, poll_id): poll.set_published(True) except AssignmentPoll.DoesNotExist: messages.error(request, _('Ballot ID %d does not exist.') % int(poll_id)) - return redirect(reverse('assignment_view', args=[poll.assignment.id])) + return redirect(reverse('assignment_overview')) if request.is_ajax(): return ajax_request({'published': poll.published})