summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
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())