Commit 154f5f0d authored by Collin Anderson's avatar Collin Anderson Committed by Tim Graham
Browse files

[1.7.x] Improved AppRegistryNotReady message.

Backport of 6fa9fa91 from master
parent d2f01afe
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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.")
            raise AppRegistryNotReady("Models aren't loaded yet. Ensure django.setup() has been called.")

    def get_app_configs(self):
        """