From 8121860be4b9379d107959290e5748bbaf6de1fe Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Sat, 4 Oct 2014 13:13:54 -0400 Subject: [PATCH] Revert "Improved AppRegistryNotReady message." This reverts commit 6fa9fa91a5fcb228b3c385b35a2018b3821a447a. Aymeric: "I chose not to talk about django.setup() here on purpose. This will hardly always be the correct solution." --- django/apps/registry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/apps/registry.py b/django/apps/registry.py index 08c6fc947e..57bdc3edb2 100644 --- a/django/apps/registry.py +++ b/django/apps/registry.py @@ -128,7 +128,7 @@ class Apps(object): Raises an exception if all models haven't been imported yet. """ if not self.models_ready: - raise AppRegistryNotReady("Models aren't loaded yet. Ensure django.setup() has been called.") + raise AppRegistryNotReady("Models aren't loaded yet.") def get_app_configs(self): """