We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 80bf689 commit 52784c3Copy full SHA for 52784c3
readthedocs/sso/admin.py
@@ -1,14 +1,12 @@
1
"""Admin interface for SSO models."""
2
import structlog
3
-
4
from django.contrib import admin, messages
5
6
from readthedocs.core.permissions import AdminPermission
7
from readthedocs.oauth.tasks import sync_remote_repositories
8
9
from .models import SSODomain, SSOIntegration
10
11
12
log = structlog.get_logger(__name__)
13
14
@@ -20,6 +18,7 @@ class SSOIntegrationAdmin(admin.ModelAdmin):
20
18
list_display = ("organization", "provider")
21
19
search_fields = ("organization__slug", "organization__name", "domains__domain")
22
list_filter = ("provider",)
+ raw_id_fields = ("organization",)
23
24
actions = [
25
"resync_sso_user_accounts",
0 commit comments