Commit ee10473
fix: address codex review — 6 bug fixes for sponsor management
1. Add distinct=True to Count annotations in SponsorListView to prevent
cross-multiplication of contacts × sponsorships
2. Benefit form checks bound POST year data so changing year + package
in a single submit works
3. SponsorshipEditForm same fix for year-scoped package filtering
4. Clear package M2M on cloned benefits when clone_packages unchecked
5. Return sent_count from notification use case; show warning when
zero emails were actually sent instead of false success
6. Show error when PDF generation fails but DOCX succeeds so staff
know the contract was not finalized
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 6730f87 commit ee10473
2 files changed
+19
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1637 | 1637 | | |
1638 | 1638 | | |
1639 | 1639 | | |
1640 | | - | |
| 1640 | + | |
1641 | 1641 | | |
1642 | 1642 | | |
1643 | 1643 | | |
1644 | 1644 | | |
1645 | 1645 | | |
1646 | | - | |
| 1646 | + | |
| 1647 | + | |
| 1648 | + | |
| 1649 | + | |
1647 | 1650 | | |
1648 | 1651 | | |
1649 | 1652 | | |
| |||
2030 | 2033 | | |
2031 | 2034 | | |
2032 | 2035 | | |
2033 | | - | |
| 2036 | + | |
2034 | 2037 | | |
2035 | 2038 | | |
2036 | 2039 | | |
| |||
2039 | 2042 | | |
2040 | 2043 | | |
2041 | 2044 | | |
2042 | | - | |
| 2045 | + | |
| 2046 | + | |
| 2047 | + | |
| 2048 | + | |
| 2049 | + | |
| 2050 | + | |
2043 | 2051 | | |
2044 | 2052 | | |
2045 | 2053 | | |
| |||
2857 | 2865 | | |
2858 | 2866 | | |
2859 | 2867 | | |
2860 | | - | |
| 2868 | + | |
2861 | 2869 | | |
2862 | 2870 | | |
| 2871 | + | |
| 2872 | + | |
2863 | 2873 | | |
2864 | 2874 | | |
2865 | 2875 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
| 196 | + | |
196 | 197 | | |
197 | 198 | | |
198 | 199 | | |
199 | 200 | | |
200 | 201 | | |
201 | 202 | | |
| 203 | + | |
202 | 204 | | |
203 | 205 | | |
204 | 206 | | |
| |||
223 | 225 | | |
224 | 226 | | |
225 | 227 | | |
| 228 | + | |
| 229 | + | |
226 | 230 | | |
227 | 231 | | |
228 | 232 | | |
| |||
0 commit comments