From 17c66e6fe77bc5eb2bd9e6f8f032a105d3cac3d7 Mon Sep 17 00:00:00 2001 From: Aymeric Augustin Date: Sun, 22 Dec 2013 17:07:52 +0100 Subject: Renamed has_model to get_registered_models. That matches its return type better. --- django/apps/cache.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'django/apps') 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. -- cgit v1.3