summaryrefslogtreecommitdiff
path: root/django/core/serializers/python.py
diff options
context:
space:
mode:
authorChristopher Long <indirecthit@gmail.com>2006-07-27 22:38:02 +0000
committerChristopher Long <indirecthit@gmail.com>2006-07-27 22:38:02 +0000
commit75c6dc967d4f27a8361d8cf77a1ea279ba9fa3b1 (patch)
tree2b1ad1b7c7af7cc9ed04a843c33d6ae539b51475 /django/core/serializers/python.py
parent8e48efbbd09685f04856bf448d37c4b7a84e8548 (diff)
[per-object-permissions] Update to trunk
git-svn-id: http://code.djangoproject.com/svn/django/branches/per-object-permissions@3464 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/core/serializers/python.py')
-rw-r--r--django/core/serializers/python.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/core/serializers/python.py b/django/core/serializers/python.py
index 7989e1d469..4181bc7f2b 100644
--- a/django/core/serializers/python.py
+++ b/django/core/serializers/python.py
@@ -79,7 +79,7 @@ def Deserializer(object_list, **options):
elif field.rel and isinstance(field.rel, models.ManyToOneRel):
try:
data[field.name] = field.rel.to._default_manager.get(pk=field_value)
- except RelatedModel.DoesNotExist:
+ except field.rel.to.DoesNotExist:
data[field.name] = None
# Handle all other fields