diff options
| author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2013-12-22 17:11:47 +0100 |
|---|---|---|
| committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2013-12-22 17:11:47 +0100 |
| commit | 71450f6b4515f99bae770da69f79f5072e2ff608 (patch) | |
| tree | 3a9a31085fd0f66621a990542ec98413170d77d2 | |
| parent | 17c66e6fe77bc5eb2bd9e6f8f032a105d3cac3d7 (diff) | |
Syntax error.
| -rw-r--r-- | django/apps/cache.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/apps/cache.py b/django/apps/cache.py index 6d8988ad70..2c27f96a72 100644 --- a/django/apps/cache.py +++ b/django/apps/cache.py @@ -308,7 +308,7 @@ class AppCache(object): is being populated. It returns None 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: + return app_config is not None and app_config.name == app_name def get_registered_model(self, app_label, model_name): """ |
