mirror of
https://github.com/django/django.git
synced 2025-12-02 16:16:01 +00:00
Fixed outdated comment in RelatedObjectDoesNotExist.
This commit is contained in:
parent
1399f8ae77
commit
0a69479b6c
1 changed files with 2 additions and 2 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue