diff --git a/kallithea/controllers/admin/auth_settings.py b/kallithea/controllers/admin/auth_settings.py --- a/kallithea/controllers/admin/auth_settings.py +++ b/kallithea/controllers/admin/auth_settings.py @@ -37,9 +37,9 @@ from kallithea.lib import helpers as h from kallithea.lib.auth import HasPermissionAnyDecorator, LoginRequired from kallithea.lib.base import BaseController, render from kallithea.lib.webutils import url +from kallithea.model import meta from kallithea.model.db import Setting from kallithea.model.forms import AuthSettingsForm -from kallithea.model.meta import Session log = logging.getLogger(__name__) @@ -132,7 +132,7 @@ class AuthSettingsController(BaseControl v = ','.join(v) log.debug("%s = %s", k, str(v)) setting = Setting.create_or_update(k, v) - Session().commit() + meta.Session().commit() h.flash(_('Auth settings updated successfully'), category='success') except formencode.Invalid as errors: