Django

Code

Ticket #1030: django_1030.patch

File django_1030.patch, 0.8 kB (added by yk4ever@gmail.com, 2 years ago)

Temporary fix

  • manipulators.py

    old new  
    180180                            param = getattr(new_object, related.field.rel.field_name) 
    181181                        elif (not self.change) and isinstance(f, AutoField): 
    182182                            param = None 
    183                         elif self.change and (isinstance(f, FileField) or not child_follow.get(f.name, None)): 
     183                        elif self.change and (isinstance(f, FileField) or not child_follow.get(f.name, None) or not f.editable): 
    184184                            if old_rel_obj: 
    185185                                param = getattr(old_rel_obj, f.column) 
    186186                            else: