Add RemoteRepositoryInline to ProjectAdmin to surface connected remote repository#12813
Draft
Add RemoteRepositoryInline to ProjectAdmin to surface connected remote repository#12813
Conversation
Co-authored-by: ericholscher <25510+ericholscher@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add remote repository inline to Project admin
Add ProjectInline to RemoteRepositoryAdmin to surface connected projects
Feb 25, 2026
Member
|
@copilot code review[agent] Do the inline the other way |
Co-authored-by: ericholscher <25510+ericholscher@users.noreply.github.com>
Contributor
Author
Done in f82441a. The inline is now Since the FK goes |
Copilot
AI
changed the title
Add ProjectInline to RemoteRepositoryAdmin to surface connected projects
Add RemoteRepositoryInline to ProjectAdmin to surface connected remote repository
Feb 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ProjectAdminhad no inline visibility into theRemoteRepositoryconnected to a project via theremote_repositoryFK. Admins had no way to inspect the remote repository details without navigating away from the project page.Changes
readthedocs/projects/admin.py: AddedRemoteRepositoryInline(read-onlyStackedInline) toProjectAdminfull_name,clone_url,html_url,private,vcs,vcs_provider,default_branchas read-only fieldsshow_change_link = Truefor direct navigation to the remote repository admin pageReadOnlyInlineMixinclasses = ["collapse"])readthedocs/oauth/admin.py: No changes (reverted to original state)Since
Project.remote_repositoryis a FK fromProject→RemoteRepository(not the reverse), Django's standard inline mechanism cannot be used directly inProjectAdmin. The implementation overridescheck()to skip the FK system check and overridesget_formset()to use amodelformset_factory-based formset whose queryset is built from the project'sremote_repository_id:✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.