From 216ac95cfb649c76d2f922d8de2c493136894e03 Mon Sep 17 00:00:00 2001 From: Emanuel Schuetze Date: Thu, 8 Nov 2012 20:08:09 +0100 Subject: [PATCH] Redirect to dashboard after submit widget selection form. --- openslides/projector/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openslides/projector/views.py b/openslides/projector/views.py index 958010ac7..7f008c87e 100644 --- a/openslides/projector/views.py +++ b/openslides/projector/views.py @@ -21,6 +21,7 @@ from django.core.urlresolvers import reverse from django.db import transaction from django.db.models import Q from django.dispatch import receiver +from django.shortcuts import redirect from django.utils.datastructures import SortedDict from django.utils.importlib import import_module from django.utils.translation import ugettext_lazy as _ @@ -206,8 +207,7 @@ class SelectWidgetsView(TemplateView): else: transaction.commit() self.request.session['widgets'] = activated_widgets - return self.render_to_response(context) - + return redirect(reverse('dashboard')) class ProjectorEdit(RedirectView):