From f326720a7363f305a6767d71fc3a8db2dcb05c0e Mon Sep 17 00:00:00 2001 From: Aymeric Augustin Date: Tue, 24 Dec 2013 15:40:12 +0100 Subject: Documented the Apps and AppConfig APIs. --- django/apps/registry.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'django') diff --git a/django/apps/registry.py b/django/apps/registry.py index 0cb58f2049..bedd8cdb02 100644 --- a/django/apps/registry.py +++ b/django/apps/registry.py @@ -278,7 +278,7 @@ class Apps(object): app_name is the full name of the app eg. 'django.contrib.admin'. It's safe to call this method at import time, even while the registry - is being populated. It returns None for apps that aren't loaded yet. + is being populated. It returns False for apps that aren't loaded yet. """ app_config = self.app_configs.get(app_name.rpartition(".")[2]) return app_config is not None and app_config.name == app_name @@ -288,7 +288,7 @@ class Apps(object): Returns the model class if one is registered and None otherwise. It's safe to call this method at import time, even while the registry - is being populated. It returns None for models that aren't loaded yet. + is being populated. It returns False for models that aren't loaded yet. """ return self.all_models[app_label].get(model_name.lower()) -- cgit v1.3