Ticket #1711: manipulators.diff
File manipulators.diff, 776 bytes (added by , 18 years ago) |
---|
-
django/db/models/manipulators.py
177 177 # case, because they'll be dealt with later. 178 178 179 179 if f == related.field: 180 param = getattr(new_object, related.field.rel. field_name)180 param = getattr(new_object, related.field.rel.get_related_field().attname) 181 181 elif (not self.change) and isinstance(f, AutoField): 182 182 param = None 183 183 elif self.change and (isinstance(f, FileField) or not child_follow.get(f.name, None)):