From 0a69479b6c58c9eb420e688e436b6c6e41415613 Mon Sep 17 00:00:00 2001 From: Simon Charette Date: Wed, 18 Oct 2017 20:31:23 -0400 Subject: [PATCH] Fixed outdated comment in RelatedObjectDoesNotExist. --- django/db/models/fields/related_descriptors.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/django/db/models/fields/related_descriptors.py b/django/db/models/fields/related_descriptors.py index 818c0d4d7c..39d7223d8a 100644 --- a/django/db/models/fields/related_descriptors.py +++ b/django/db/models/fields/related_descriptors.py @@ -88,8 +88,8 @@ class ForwardManyToOneDescriptor: @cached_property def RelatedObjectDoesNotExist(self): # The exception can't be created at initialization time since the - # related model might not be resolved yet; `rel.model` might still be - # a string model reference. + # related model might not be resolved yet; `self.field.model` might + # still be a string model reference. return type( 'RelatedObjectDoesNotExist', (self.field.remote_field.model.DoesNotExist, AttributeError),