mirror of
https://github.com/getredash/redash.git
synced 2025-12-25 01:03:20 -05:00
Remove unused code
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import redash.models
|
||||
from redash.models import db
|
||||
from redash.permissions import ACCESS_TYPE_MODIFY
|
||||
from redash.utils import gen_query_hash, utcnow
|
||||
from redash.utils.configuration import ConfigurationContainer
|
||||
from redash.permissions import ACCESS_TYPE_MODIFY
|
||||
|
||||
|
||||
class ModelFactory(object):
|
||||
@@ -167,11 +167,6 @@ class Factory(object):
|
||||
|
||||
return self._data_source
|
||||
|
||||
def _init_org(self):
|
||||
if self._org is None:
|
||||
self._org, self._admin_group, self._default_group = redash.models.init_db()
|
||||
self.org.domain = 'org0.example.org'
|
||||
|
||||
def create_org(self, **kwargs):
|
||||
org = org_factory.create(**kwargs)
|
||||
self.create_group(org=org, type=redash.models.Group.BUILTIN_GROUP, name="default")
|
||||
|
||||
Reference in New Issue
Block a user