Skip to content

Commit 9d1c1e9

Browse files
committed
sqladmin columns updated
1 parent 4e6bb75 commit 9d1c1e9

61 files changed

Lines changed: 7 additions & 67 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

auth_backend/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
import os
22

3-
43
__version__ = os.getenv('APP_VERSION', 'dev')

auth_backend/__main__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
from auth_backend.cli.process import process
22

3-
43
if __name__ == '__main__':
54
process()

auth_backend/admin/admin.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
from sqladmin import ModelView
22

3-
from auth_backend.models.db import Scope, Group, User
3+
from auth_backend.models.db import Group, Scope, User
44

55

66
class ScopeAdmin(ModelView, model=Scope):
77
name = "Scope"
88
name_plural = "Scopes"
9-
column_list = ["id", "name", "comment", "is_deleted", "create_ts"]
9+
column_list = ["id", "name", "comment", "is_deleted"]
1010
column_searchable_list = ["name", "comment"]
1111

1212

1313
class GroupAdmin(ModelView, model=Group):
1414
name = "Group"
1515
name_plural = "Groups"
16-
column_list = ["id", "name", "parent_id", "is_deleted", "create_ts"]
16+
column_list = ["id", "name", "scopes", "users", "parent_id", "is_deleted"]
1717
column_searchable_list = ["name"]
1818

1919

2020
class UserAdmin(ModelView, model=User):
2121
name = "User"
2222
name_plural = "Users"
23-
column_list = ["id", "is_deleted", "create_ts"]
23+
column_list = ["id", "scopes", "groups"]

auth_backend/auth_method/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
from .session import Session
66
from .userdata_mixin import UserdataMixin
77

8-
98
__all__ = [
109
"Session",
1110
"AUTH_METHODS",

auth_backend/auth_method/base.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
from auth_backend.models.db import AuthMethod, User, UserSession
1313
from auth_backend.settings import get_settings
1414

15-
1615
logger = logging.getLogger(__name__)
1716
settings = get_settings()
1817

auth_backend/auth_method/oauth.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
from .method_mixins import LoginableMixin, RegistrableMixin
1616
from .userdata_mixin import UserdataMixin
1717

18-
1918
logger = logging.getLogger(__name__)
2019

2120

auth_backend/auth_method/outer.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
from auth_backend.models.db import AuthMethod, UserSession
1313
from auth_backend.utils.security import UnionAuth
1414

15-
1615
logger = logging.getLogger(__name__)
1716

1817

auth_backend/auth_plugins/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
from .vk import VkAuth
1717
from .yandex import YandexAuth
1818

19-
2019
__all__ = [
2120
"AUTH_METHODS",
2221
"AuthPluginMeta",

auth_backend/auth_plugins/airflow.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
from auth_backend.auth_method.outer import ConnectionIssue, OuterAuthMeta
77
from auth_backend.settings import Settings
88

9-
109
logger = logging.getLogger(__name__)
1110

1211

auth_backend/auth_plugins/authentic.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
from auth_backend.settings import Settings
2121
from auth_backend.utils.security import UnionAuth
2222

23-
2423
AUTH_METHOD_ID_PARAM_NAME = 'user_id'
2524
logger = logging.getLogger(__name__)
2625

0 commit comments

Comments
 (0)