From 94b5bc361aef2ae2d46a49dbfe32d9271c185800 Mon Sep 17 00:00:00 2001 From: Zbigniew Siciarz Date: Sat, 15 Feb 2014 17:27:12 +0100 Subject: Fixed #22002 -- Documented avoiding database interaction in AppConfig.ready(). Thanks Marc Tamlyn for the suggestion. --- docs/topics/testing/overview.txt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'docs/topics/testing') diff --git a/docs/topics/testing/overview.txt b/docs/topics/testing/overview.txt index 078c2a1da9..7a2d15edce 100644 --- a/docs/topics/testing/overview.txt +++ b/docs/topics/testing/overview.txt @@ -196,6 +196,11 @@ advanced settings. your tests. *It is a bad idea to have such import-time database queries in your code* anyway - rewrite your code so that it doesn't do this. + .. versionadded:: 1.7 + + This also applies to customized implementations of + :meth:`~django.apps.AppConfig.ready()`. + .. seealso:: The :ref:`advanced multi-db testing topics `. -- cgit v1.3