Commit a9233db
committed
Refactor grant reimbursement categories to be flexible
Remove hardcoded default grant amounts for ticket, accommodation, and travel
from `Conference` in favor of using `GrantReimbursementCategory`. Update
all relevant admin forms, models, and templates to reference flexible
categories instead of fixed fields.
- Remove legacy fields: `grants_default_ticket_amount`,
`grants_default_accommodation_amount`, `grants_default_travel_from_italy_amount`,
and `grants_default_travel_from_europe_amount` from `Conference`
- Update `Grant` and `GrantReimbursement` logic to work exclusively with
`GrantReimbursementCategory`
- Refactor grant review admin and summary logic to support multiple,
configurable reimbursement categories per grant
- Migrate existing grants to new reimbursement category scheme
- Add and update tests and migrations to cover flexible grant categories
This change allows flexible reimbursement types (and amounts) to be
configured per conference, supports granular grant allocation, and
paves the way for internationalization and more complex business rules.1 parent c9c8475 commit a9233db
File tree
12 files changed
+1117
-333
lines changed- backend
- conferences
- admin
- migrations
- models
- grants
- migrations
- tests
- reviews
- templates
- tests
12 files changed
+1117
-333
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | 187 | | |
200 | 188 | | |
201 | 189 | | |
| |||
Lines changed: 33 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | 96 | | |
138 | 97 | | |
139 | 98 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | 2 | | |
16 | 3 | | |
17 | | - | |
| 4 | + | |
18 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
19 | 10 | | |
| 11 | + | |
20 | 12 | | |
| 13 | + | |
21 | 14 | | |
22 | 15 | | |
23 | | - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
24 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
25 | 30 | | |
26 | 31 | | |
| 32 | + | |
27 | 33 | | |
28 | 34 | | |
29 | | - | |
30 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
31 | 39 | | |
32 | 40 | | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
| 41 | + | |
41 | 42 | | |
42 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
43 | 51 | | |
44 | 52 | | |
45 | 53 | | |
| |||
394 | 402 | | |
395 | 403 | | |
396 | 404 | | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
397 | 431 | | |
398 | 432 | | |
399 | 433 | | |
| |||
407 | 441 | | |
408 | 442 | | |
409 | 443 | | |
410 | | - | |
411 | | - | |
412 | | - | |
413 | | - | |
414 | | - | |
| 444 | + | |
415 | 445 | | |
416 | 446 | | |
417 | 447 | | |
| |||
425 | 455 | | |
426 | 456 | | |
427 | 457 | | |
428 | | - | |
429 | 458 | | |
430 | 459 | | |
431 | 460 | | |
| |||
451 | 480 | | |
452 | 481 | | |
453 | 482 | | |
| 483 | + | |
454 | 484 | | |
455 | 485 | | |
456 | 486 | | |
| |||
459 | 489 | | |
460 | 490 | | |
461 | 491 | | |
462 | | - | |
463 | 492 | | |
464 | | - | |
465 | | - | |
466 | | - | |
467 | | - | |
468 | 493 | | |
469 | 494 | | |
470 | 495 | | |
| |||
591 | 616 | | |
592 | 617 | | |
593 | 618 | | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
594 | 628 | | |
595 | 629 | | |
596 | 630 | | |
597 | 631 | | |
598 | 632 | | |
| 633 | + | |
| 634 | + | |
599 | 635 | | |
600 | 636 | | |
601 | 637 | | |
| |||
622 | 658 | | |
623 | 659 | | |
624 | 660 | | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
625 | 666 | | |
626 | 667 | | |
627 | 668 | | |
| |||
0 commit comments