changeset 6239:fa85c3df571b

utils: remove unnecessary import of Session
author Mads Kiilerich <madski@unity3d.com>
date Sun, 25 Sep 2016 17:21:07 +0200
parents d5b837c8b451
children bcdcdd576e0a
files kallithea/lib/utils.py
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/kallithea/lib/utils.py	Sun Sep 25 17:21:07 2016 +0200
+++ b/kallithea/lib/utils.py	Sun Sep 25 17:21:07 2016 +0200
@@ -49,7 +49,6 @@
 from kallithea.model import meta
 from kallithea.model.db import Repository, User, Ui, \
     UserLog, RepoGroup, Setting, UserGroup
-from kallithea.model.meta import Session
 from kallithea.model.repo_group import RepoGroupModel
 from kallithea.lib.utils2 import safe_str, safe_unicode, get_current_authuser
 from kallithea.lib.vcs.utils.fakemod import create_module
@@ -649,7 +648,7 @@
     dbmanage.admin_prompt()
     dbmanage.create_permissions()
     dbmanage.populate_default_permissions()
-    Session().commit()
+    meta.Session().commit()
     # PART TWO make test repo
     log.debug('making test vcs repositories')