Fixed a problem with editing inline objects.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@3857 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Malcolm Tredinnick 2006-09-26 12:49:49 +00:00
parent 876a3ed602
commit ae0bea8d50
1 changed files with 1 additions and 1 deletions

View File

@ -177,7 +177,7 @@ class AutomaticManipulator(forms.Manipulator):
# case, because they'll be dealt with later. # case, because they'll be dealt with later.
if f == related.field: 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): elif (not self.change) and isinstance(f, AutoField):
param = None param = None
elif self.change and (isinstance(f, FileField) or not child_follow.get(f.name, None)): elif self.change and (isinstance(f, FileField) or not child_follow.get(f.name, None)):