summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2013-12-24 15:40:12 +0100
committerAymeric Augustin <aymeric.augustin@m4x.org>2013-12-24 17:20:11 +0100
commitf326720a7363f305a6767d71fc3a8db2dcb05c0e (patch)
tree0efba492bde483209e150bdc77d917fd286fade8 /django
parent9267fb88efb5a81adcf5aac582fb62b3ee269c08 (diff)
Documented the Apps and AppConfig APIs.
Diffstat (limited to 'django')
-rw-r--r--django/apps/registry.py4
1 files changed, 2 insertions, 2 deletions
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())