Commit 573902b
committed
fix: Add save_m2m() call to SegmentForm to properly save tags
The SegmentForm was not saving many-to-many relationships like tags
because the overridden save() method was missing the save_m2m() call.
This caused tags to be lost when saving segment instances, while
service path forms worked correctly.
Added self.save_m2m() call after instance.save() when commit=True
to ensure all many-to-many fields (including tags) are properly
persisted to the database.
Fixes: Tags not being saved in segment forms1 parent 47dced9 commit 573902b
2 files changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
| 160 | + | |
160 | 161 | | |
161 | 162 | | |
162 | 163 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
0 commit comments