diff options
| author | Loic Bistuer <loic.bistuer@gmail.com> | 2014-10-22 23:16:32 +0700 |
|---|---|---|
| committer | Loic Bistuer <loic.bistuer@gmail.com> | 2014-10-26 00:12:17 +0700 |
| commit | 7fa6781f818deea61cef4c13b139fa9586a6ca7a (patch) | |
| tree | e1b1909276317b6a5ff968f1bcaa96d2ed0a3e38 /docs | |
| parent | 7227ec8eccde8ea28addad6c276276cb1d2a6efe (diff) | |
[1.7.x] Fixed #23621 -- Warn for duplicate models when a module is reloaded.
Previously a RuntimeError was raised every time two models clashed
in the app registry. This prevented reloading a module in a REPL;
while it's not recommended to do so, we decided not to forbid this
use-case by turning the error into a warning.
Thanks dfunckt and Sergey Pashinin for the initial patches.
Backport of 8c4ca16c65 and b62f72498a from master
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/releases/1.7.2.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/releases/1.7.2.txt b/docs/releases/1.7.2.txt index 32500045f0..c25aafba1d 100644 --- a/docs/releases/1.7.2.txt +++ b/docs/releases/1.7.2.txt @@ -14,3 +14,7 @@ Bugfixes * Fixed a migration crash when adding an explicit ``id`` field to a model on SQLite (:ticket:`23702`). + +* Warn for duplicate models when a module is reloaded. Previously a +RuntimeError was raised every time two models clashed in the app registry. +(:ticket:`23621`). |
