Ticket #1075: edit_inline_bug_fix.diff

File edit_inline_bug_fix.diff, 930 bytes (added by Eric Moritz, 19 years ago)

patch had the wrong path

  • __init__.py

     
    17681768
    17691769    if change:
    17701770        params[opts.pk.attname] = self.obj_key
    1771 
     1771   
    17721772    # First, save the basic object itself.
    17731773    new_object = klass(**params)
    17741774    new_object.save()
     
    18091809        if child_follow:
    18101810            obj_list = expanded_data[related.var_name].items()
    18111811            obj_list.sort(lambda x, y: cmp(int(x[0]), int(y[0])))
    1812             params = {}
    18131812
    18141813            # For each related item...
    18151814            for _, rel_new_data in obj_list:
    1816 
     1815                params = {}
    18171816                # Keep track of which core=True fields were provided.
    18181817                # If all core fields were given, the related object will be saved.
    18191818                # If none of the core fields were given, the object will be deleted.
Back to Top