Ticket #6504: attname-patch.diff

File attname-patch.diff, 700 bytes (added by ep, 17 years ago)

Patch that apparently fixes this issue.

  • django/db/models/manipulators.py

     
    185185                            param = None
    186186                        elif self.change and (isinstance(f, FileField) or not child_follow.get(f.name, None)):
    187187                            if old_rel_obj:
    188                                 param = getattr(old_rel_obj, f.column)
     188                                param = getattr(old_rel_obj, f.attname)
    189189                            else:
    190190                                param = f.get_default()
    191191                        else:
Back to Top