Adjusted a comment to reflect some app refactor changes.

This commit is contained in:
Simon Charette 2014-11-26 09:45:10 -05:00
parent 6302893112
commit 9cebb95348
1 changed files with 3 additions and 3 deletions

View File

@ -70,9 +70,9 @@ def add_lazy_relation(cls, field, relation, operation):
model_name = relation._meta.object_name model_name = relation._meta.object_name
# Try to look up the related model, and if it's already loaded resolve the # 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 # string right away. If get_registered_model raises a LookupError, it means
# model isn't loaded yet, so we need to pend the relation until the class # that the related model isn't loaded yet, so we need to pend the relation
# is prepared. # until the class is prepared.
try: try:
model = cls._meta.apps.get_registered_model(app_label, model_name) model = cls._meta.apps.get_registered_model(app_label, model_name)
except LookupError: except LookupError: