Skip to content

Admin: set raw field for SSOIntegration #11572

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions readthedocs/sso/admin.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
"""Admin interface for SSO models."""
import structlog

from django.contrib import admin, messages

from readthedocs.core.permissions import AdminPermission
from readthedocs.oauth.tasks import sync_remote_repositories

from .models import SSODomain, SSOIntegration


log = structlog.get_logger(__name__)


Expand All @@ -20,6 +18,7 @@ class SSOIntegrationAdmin(admin.ModelAdmin):
list_display = ("organization", "provider")
search_fields = ("organization__slug", "organization__name", "domains__domain")
list_filter = ("provider",)
raw_id_fields = ("organization",)

actions = [
"resync_sso_user_accounts",
Expand Down