Commit 08fedff
committed
Fix select_related('workflow') → prefetch_related('workflows') in ajax views
select_related cannot traverse reverse ForeignKey relations. Changed three
DataTables ajax views (pending, completed, admin approvals) to use
prefetch_related('form_definition__workflows') instead.
Also fix sync_api import hasattr check for sub-workflow config.
Fixes: completedTable Ajax error on test3.
Bump version to 0.23.21 parent 3310763 commit 08fedff
3 files changed
Lines changed: 9 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
579 | 579 | | |
580 | 580 | | |
581 | 581 | | |
582 | | - | |
| 582 | + | |
| 583 | + | |
583 | 584 | | |
584 | 585 | | |
585 | 586 | | |
586 | | - | |
| 587 | + | |
587 | 588 | | |
588 | 589 | | |
589 | 590 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2464 | 2464 | | |
2465 | 2465 | | |
2466 | 2466 | | |
2467 | | - | |
2468 | | - | |
| 2467 | + | |
| 2468 | + | |
2469 | 2469 | | |
2470 | 2470 | | |
2471 | 2471 | | |
| |||
2591 | 2591 | | |
2592 | 2592 | | |
2593 | 2593 | | |
2594 | | - | |
2595 | 2594 | | |
2596 | | - | |
| 2595 | + | |
2597 | 2596 | | |
2598 | 2597 | | |
2599 | 2598 | | |
| |||
2692 | 2691 | | |
2693 | 2692 | | |
2694 | 2693 | | |
2695 | | - | |
2696 | | - | |
| 2694 | + | |
| 2695 | + | |
2697 | 2696 | | |
2698 | 2697 | | |
2699 | 2698 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
0 commit comments