summaryrefslogtreecommitdiff
path: root/django/db
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2012-04-12 20:23:41 +0000
committerClaude Paroz <claude@2xlibre.net>2012-04-12 20:23:41 +0000
commit2cd516002d43cdc09741618f0a0db047ee6d78fd (patch)
treec9f459257cd7bd897f645dce493fcfb9cff9b344 /django/db
parent844e56e21aa45a4bf1c549129e46f7d7959c74d8 (diff)
Fixed #18002 -- Fixed typo in attribute name in ReverseSingleRelatedObjectDescriptor.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17904 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/db')
-rw-r--r--django/db/models/fields/related.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/models/fields/related.py b/django/db/models/fields/related.py
index fbb40d9175..a16f9553c6 100644
--- a/django/db/models/fields/related.py
+++ b/django/db/models/fields/related.py
@@ -364,7 +364,7 @@ class ReverseSingleRelatedObjectDescriptor(object):
def __set__(self, instance, value):
if instance is None:
- raise AttributeError("%s must be accessed via instance" % self._field.name)
+ raise AttributeError("%s must be accessed via instance" % self.field.name)
# If null=True, we can assign null here, but otherwise the value needs
# to be an instance of the related class.