diff options
| author | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2006-09-26 12:49:49 +0000 |
|---|---|---|
| committer | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2006-09-26 12:49:49 +0000 |
| commit | ae0bea8d50f0070a7c1c377fb239bcd6926fbf82 (patch) | |
| tree | 99815510ec7e6225e9d5d5de5f3154e6922aacb5 | |
| parent | 876a3ed602a740e816ebd48868f4bc5ff75f52b6 (diff) | |
Fixed a problem with editing inline objects.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3857 bcc190cf-cafb-0310-a4f2-bffc1f526a37
| -rw-r--r-- | django/db/models/manipulators.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/models/manipulators.py b/django/db/models/manipulators.py index c33e703da1..d62b0e7e79 100644 --- a/django/db/models/manipulators.py +++ b/django/db/models/manipulators.py @@ -177,7 +177,7 @@ class AutomaticManipulator(forms.Manipulator): # case, because they'll be dealt with later. if f == related.field: - param = getattr(new_object, related.field.rel.field_name) + param = getattr(new_object, related.field.rel.get_related_field().attname) elif (not self.change) and isinstance(f, AutoField): param = None elif self.change and (isinstance(f, FileField) or not child_follow.get(f.name, None)): |
