diff --git a/rhodecode/model/integration.py b/rhodecode/model/integration.py
--- a/rhodecode/model/integration.py
+++ b/rhodecode/model/integration.py
@@ -25,24 +25,15 @@ Model for integrations
 
 
 import logging
-import traceback
 
-from pylons import tmpl_context as c
-from pylons.i18n.translation import _, ungettext
 from sqlalchemy import or_, and_
-from sqlalchemy.sql.expression import false, true
-from mako import exceptions
 
 import rhodecode
 from rhodecode import events
-from rhodecode.lib import helpers as h
 from rhodecode.lib.caching_query import FromCache
-from rhodecode.lib.utils import PartialRenderer
 from rhodecode.model import BaseModel
-from rhodecode.model.db import Integration, User, Repository, RepoGroup
-from rhodecode.model.meta import Session
+from rhodecode.model.db import Integration, Repository, RepoGroup
 from rhodecode.integrations import integration_type_registry
-from rhodecode.integrations.types.base import IntegrationTypeBase
 
 log = logging.getLogger(__name__)