From 61122231008ead3dca6058de6a43267294b944cf Mon Sep 17 00:00:00 2001 From: Luke Plant Date: Mon, 17 Apr 2006 23:13:48 +0000 Subject: [PATCH] Fixed attribute error in an exception message git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2712 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/db/models/fields/related.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/db/models/fields/related.py b/django/db/models/fields/related.py index 61d0095ce2..ad7e0a605c 100644 --- a/django/db/models/fields/related.py +++ b/django/db/models/fields/related.py @@ -116,7 +116,7 @@ class ReverseSingleRelatedObjectDescriptor(object): def __get__(self, instance, instance_type=None): 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 cache_name = self.field.get_cache_name() try: return getattr(instance, cache_name)