Commit a54857c
SlugModel: Avoid saving with force_insert twice
If the 'force_insert' flag was passed, don't pass it again:
doing so will attempt to re-insert with the same primary key,
which will cause an IntegrityError.1 parent 9eefc8a commit a54857c
1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
50 | 55 | | |
51 | 56 | | |
52 | 57 | | |
| |||
0 commit comments