diff options
author | Simon Charette <charette.s@gmail.com> | 2014-11-26 09:45:10 -0500 |
---|---|---|
committer | Simon Charette <charette.s@gmail.com> | 2014-11-26 09:47:37 -0500 |
commit | 9cebb95348ae6ceccdfab658a16628dfc64a06cb (patch) | |
tree | 2e12c3e86388f0dc3d92649b6d579c32888b35b4 | |
parent | 6302893112a67343b3f5eff3f09f91b245346877 (diff) | |
download | django-9cebb95348ae6ceccdfab658a16628dfc64a06cb.tar.gz |
Adjusted a comment to reflect some app refactor changes.
-rw-r--r-- | django/db/models/fields/related.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/django/db/models/fields/related.py b/django/db/models/fields/related.py index 91e97bc0b3..ea88d19a17 100644 --- a/django/db/models/fields/related.py +++ b/django/db/models/fields/related.py @@ -70,9 +70,9 @@ def add_lazy_relation(cls, field, relation, operation): model_name = relation._meta.object_name # Try to look up the related model, and if it's already loaded resolve the - # string right away. If get_model returns None, it means that the related - # model isn't loaded yet, so we need to pend the relation until the class - # is prepared. + # string right away. If get_registered_model raises a LookupError, it means + # that the related model isn't loaded yet, so we need to pend the relation + # until the class is prepared. try: model = cls._meta.apps.get_registered_model(app_label, model_name) except LookupError: |