Commit 4e1a457
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>1 parent dea04fa commit 4e1a457
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 | |
|---|---|---|---|
| |||
1223 | 1223 | | |
1224 | 1224 | | |
1225 | 1225 | | |
1226 | | - | |
1227 | | - | |
1228 | | - | |
1229 | | - | |
1230 | 1226 | | |
1231 | 1227 | | |
1232 | 1228 | | |
| |||
1241 | 1237 | | |
1242 | 1238 | | |
1243 | 1239 | | |
| 1240 | + | |
| 1241 | + | |
| 1242 | + | |
| 1243 | + | |
1244 | 1244 | | |
1245 | 1245 | | |
1246 | 1246 | | |
| |||
0 commit comments