From 10a162809fa4de3a56bb7f2d3cb12b6b82a6f826 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Tue, 26 Jan 2016 07:03:54 -0500 Subject: Refs #24007 -- Removed an apps.populate() call in model unpickling that can cause deadlocks. --- docs/releases/1.10.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'docs') diff --git a/docs/releases/1.10.txt b/docs/releases/1.10.txt index 29d27f36f2..0e7381a972 100644 --- a/docs/releases/1.10.txt +++ b/docs/releases/1.10.txt @@ -461,6 +461,16 @@ Since the introduction of migrations for the contrib apps in Django 1.8, the tables of these custom user test models were not created anymore making them unusable in a testing context. +Apps registry is no longer auto-populated when unpickling models outside of Django +---------------------------------------------------------------------------------- + +The apps registry is no longer auto-populated when unpickling models. This was +added in Django 1.7.2 as an attempt to allow unpickling models outside of +Django, such as in an RQ worker, without calling ``django.setup()``, but it +creates the possibility of a deadlock. To adapt your code in the case of RQ, +you can `provide your own worker script `_ +that calls ``django.setup()``. + Miscellaneous ------------- -- cgit v1.3