Skip to content

Commit 52784c3

Browse files
authored
Admin: set raw field for SSOIntegration (#11572)
* Admin: set raw field for SSOIntegration * Format
1 parent 80bf689 commit 52784c3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

readthedocs/sso/admin.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
"""Admin interface for SSO models."""
22
import structlog
3-
43
from django.contrib import admin, messages
54

65
from readthedocs.core.permissions import AdminPermission
76
from readthedocs.oauth.tasks import sync_remote_repositories
87

98
from .models import SSODomain, SSOIntegration
109

11-
1210
log = structlog.get_logger(__name__)
1311

1412

@@ -20,6 +18,7 @@ class SSOIntegrationAdmin(admin.ModelAdmin):
2018
list_display = ("organization", "provider")
2119
search_fields = ("organization__slug", "organization__name", "domains__domain")
2220
list_filter = ("provider",)
21+
raw_id_fields = ("organization",)
2322

2423
actions = [
2524
"resync_sso_user_accounts",

0 commit comments

Comments
 (0)