mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Fixed #21430 -- Added a RuntimeWarning when unpickling Models and QuerySets from a different Django version.
Thanks FunkyBob for the suggestion, prasoon2211 for the initial patch, and akaariai, loic, and charettes for helping in shaping the patch.
This commit is contained in:
committed by
Tim Graham
parent
e163a3d17b
commit
42736ac8e8
@@ -176,6 +176,13 @@ Models
|
||||
* Django now logs at most 9000 queries in ``connections.queries``, in order
|
||||
to prevent excessive memory usage in long-running processes in debug mode.
|
||||
|
||||
* Pickling models and querysets across different versions of Django isn't
|
||||
officially supported (it may work, but there's no guarantee). An extra
|
||||
variable that specifies the current Django version is now added to the
|
||||
pickled state of models and querysets, and Django raises a ``RuntimeWarning``
|
||||
when these objects are unpickled in a different version than the one in
|
||||
which they were pickled.
|
||||
|
||||
Signals
|
||||
^^^^^^^
|
||||
|
||||
|
||||
Reference in New Issue
Block a user