1
0
mirror of https://github.com/django/django.git synced 2025-04-18 14:24:36 +00:00

[2.0.x] Fixed outdated comment in RelatedObjectDoesNotExist.

Backport of 0a69479b6c58c9eb420e688e436b6c6e41415613 from master
This commit is contained in:
Simon Charette 2017-10-18 20:31:23 -04:00 committed by Tim Graham
parent a831e4bad0
commit 3640693914

@ -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),