Skip to content
Browse files

Fixed a problem with editing inline objects.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 876a3ed commit ae0bea8d50f0070a7c1c377fb239bcd6926fbf82 @malcolmt malcolmt committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/db/models/
2 django/db/models/
@@ -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(, None)):

0 comments on commit ae0bea8

Please sign in to comment.
Something went wrong with that request. Please try again.