summaryrefslogtreecommitdiff
path: root/django/core/serializers/python.py
diff options
context:
space:
mode:
authorJacob Kaplan-Moss <jacob@jacobian.org>2006-07-21 17:11:13 +0000
committerJacob Kaplan-Moss <jacob@jacobian.org>2006-07-21 17:11:13 +0000
commit17d0bd151265eb284c93350a3ede632b2b23b835 (patch)
tree2ff57f537213adf2df4f3b8030b49d0bce5fdfa6 /django/core/serializers/python.py
parente9a236d86c82133ab1959e4ea4760ebe6f73bd8e (diff)
Fixed a bunch of spurious imports, typos, and other small errors turned up by a pass through PyFlakes. This covers about the first third of the errors.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3411 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