Commit 40f653d
committed
allow pre_save_hook to cancel save with HTTPError
currently, all errors in pre_save_hook are ignored,
making it impossible for pre_save_hook to be used for validation / quota enforcement / etc.
By allowing HTTPErrors to raise, save will be cancelled and the error message will be shown to the user1 parent bf00ad0 commit 40f653d
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
121 | 125 | | |
| 126 | + | |
| 127 | + | |
122 | 128 | | |
123 | 129 | | |
124 | 130 | | |
| |||
0 commit comments