mirror of
https://github.com/django/django.git
synced 2025-07-05 02:09:13 +00:00
magic-removal: Tiny change to comment
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2576 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
02b3ed3a1c
commit
ff3810c5ae
@ -120,7 +120,7 @@ class ReverseSingleRelatedObjectDescriptor(object):
|
|||||||
except AttributeError:
|
except AttributeError:
|
||||||
val = getattr(instance, self.field.attname)
|
val = getattr(instance, self.field.attname)
|
||||||
if val is None:
|
if val is None:
|
||||||
# If Null is an allowed value, return it.
|
# If NULL is an allowed value, return it.
|
||||||
if self.field.null:
|
if self.field.null:
|
||||||
return None
|
return None
|
||||||
raise self.field.rel.to.DoesNotExist
|
raise self.field.rel.to.DoesNotExist
|
||||||
|
Loading…
x
Reference in New Issue
Block a user