Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed a problem with editing inline objects.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@3857 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit ae0bea8d50f0070a7c1c377fb239bcd6926fbf82 1 parent 876a3ed
@malcolmt malcolmt authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/db/models/manipulators.py
View
2  django/db/models/manipulators.py
@@ -177,7 +177,7 @@ def save(self, new_data):
# 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)):
Please sign in to comment.
Something went wrong with that request. Please try again.