Commit 7a200ff
Fix RepositoryVersion.remove_content using wrong queryset for lazy content
The remove_content method was incorrectly using the unfiltered `content`
queryset instead of `to_remove` when deleting or marking
RepositoryContent entries as removed. This caused all content to be
removed from the repository version rather than only the specified lazy
content.
Fixes: #7851
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
(cherry picked from commit 4e1a457)1 parent 61f2507 commit 7a200ff
2 files changed
Lines changed: 5 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1111 | 1111 | | |
1112 | 1112 | | |
1113 | 1113 | | |
1114 | | - | |
1115 | | - | |
1116 | | - | |
1117 | | - | |
1118 | 1114 | | |
1119 | 1115 | | |
1120 | 1116 | | |
| |||
1129 | 1125 | | |
1130 | 1126 | | |
1131 | 1127 | | |
| 1128 | + | |
| 1129 | + | |
| 1130 | + | |
| 1131 | + | |
1132 | 1132 | | |
1133 | 1133 | | |
1134 | 1134 | | |
| |||
0 commit comments