Commit 0cbc715
fix: simplify ApprovalStepForm layout to current-stage fields only
_setup_layout was including ALL form fields (other stages + submission
data) in the crispy layout, causing empty section headers, KeyError
warnings for unregistered fields, and a nested <form> tag. Since the
template already renders submission data via _form_data_rows.html, the
crispy form only needs the current stage's fields. Set form_tag=False
to avoid the nested form.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent f7cf5b3 commit 0cbc715
2 files changed
Lines changed: 10 additions & 34 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1845 | 1845 | | |
1846 | 1846 | | |
1847 | 1847 | | |
1848 | | - | |
1849 | | - | |
| 1848 | + | |
1850 | 1849 | | |
1851 | | - | |
| 1850 | + | |
| 1851 | + | |
1852 | 1852 | | |
1853 | | - | |
1854 | | - | |
1855 | | - | |
1856 | | - | |
1857 | | - | |
1858 | | - | |
1859 | | - | |
1860 | | - | |
1861 | | - | |
1862 | | - | |
1863 | | - | |
1864 | | - | |
1865 | | - | |
1866 | | - | |
1867 | | - | |
1868 | | - | |
1869 | | - | |
1870 | | - | |
1871 | | - | |
1872 | | - | |
1873 | | - | |
1874 | | - | |
1875 | | - | |
1876 | | - | |
1877 | | - | |
1878 | | - | |
1879 | | - | |
1880 | | - | |
1881 | | - | |
1882 | | - | |
| 1853 | + | |
| 1854 | + | |
| 1855 | + | |
| 1856 | + | |
| 1857 | + | |
| 1858 | + | |
1883 | 1859 | | |
1884 | 1860 | | |
1885 | 1861 | | |
| |||
| 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