Commit ea53f1b
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 b95e5da commit ea53f1b
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 | |
|---|---|---|---|
| |||
1147 | 1147 | | |
1148 | 1148 | | |
1149 | 1149 | | |
1150 | | - | |
1151 | | - | |
1152 | | - | |
1153 | | - | |
1154 | 1150 | | |
1155 | 1151 | | |
1156 | 1152 | | |
| |||
1165 | 1161 | | |
1166 | 1162 | | |
1167 | 1163 | | |
| 1164 | + | |
| 1165 | + | |
| 1166 | + | |
| 1167 | + | |
1168 | 1168 | | |
1169 | 1169 | | |
1170 | 1170 | | |
| |||
0 commit comments