Skip to content

Commit

Permalink
Syntax error.
Browse files Browse the repository at this point in the history
  • Loading branch information
aaugustin committed Dec 22, 2013
1 parent 17c66e6 commit 71450f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django/apps/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ def has_app(self, app_name):
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):
"""
Expand Down

0 comments on commit 71450f6

Please sign in to comment.