summaryrefslogtreecommitdiff
path: root/django/apps/cache.py
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2013-12-22 17:07:52 +0100
committerAymeric Augustin <aymeric.augustin@m4x.org>2013-12-22 17:08:17 +0100
commit17c66e6fe77bc5eb2bd9e6f8f032a105d3cac3d7 (patch)
tree086877383db08b5d73e1f409fdaaaafda76e81d9 /django/apps/cache.py
parent4f064c2f0511dc900c7f4a736573c309de84dec7 (diff)
Renamed has_model to get_registered_models.
That matches its return type better.
Diffstat (limited to 'django/apps/cache.py')
-rw-r--r--django/apps/cache.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/apps/cache.py b/django/apps/cache.py
index e7adffecdb..6d8988ad70 100644
--- a/django/apps/cache.py
+++ b/django/apps/cache.py
@@ -310,7 +310,7 @@ class AppCache(object):
app_config = self.app_configs.get(app_name.rpartition(".")[2])
return app_config is not None and app_config.name == app_name:
- def has_model(self, app_label, model_name):
+ def get_registered_model(self, app_label, model_name):
"""
Returns the model class if one is registered and None otherwise.