From f28a85ebac87c68547b8510a618e4601e38cdb04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Tue, 26 Nov 2013 16:16:42 +0100 Subject: [PATCH] fix redirects on some settings change --- wcs/admin/settings.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wcs/admin/settings.py b/wcs/admin/settings.py index 062d8cf..d3aae54 100644 --- a/wcs/admin/settings.py +++ b/wcs/admin/settings.py @@ -950,7 +950,7 @@ class SettingsDirectory(QommonSettingsDirectory): get_publisher().cfg['misc'] = misc_cfg get_publisher().write_cfg() - redirect('.') + return redirect('.') def postgresql(self): postgresql_cfg = get_cfg('postgresql', {}) @@ -994,7 +994,7 @@ class SettingsDirectory(QommonSettingsDirectory): postgresql_cfg[str('postgresql')] = postgresql_cfg form.set_error('database', str(e)) else: - redirect('.') + return redirect('.') get_response().breadcrumb.append(('postgresql', _('PostgreSQL Settings'))) html_top('settings', title=_('PostgreSQL Settings')) -- 1.8.4.4