1
0
mirror of https://github.com/django/django.git synced 2025-07-05 10:19:20 +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:
Adrian Holovaty 2006-03-28 17:27:23 +00:00
parent 02b3ed3a1c
commit ff3810c5ae

View File

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