Ticket #3519: python25fix.diff

File python25fix.diff, 737 bytes (added by lakin.wecker@…, 18 years ago)

Patch to fix the problem

  • django/db/models/manipulators.py

     
    130130                        rel_manager.add(f.rel.to._default_manager.get(pk=n))
    131131                    # TODO: Add to 'fields_changed'
    132132
    133         expanded_data = DotExpandedDict(dict(new_data))
     133        expanded_data = DotExpandedDict(dict([(k,new_data.getlist(k)) for k in new_data.keys()]))
    134134        # Save many-to-one objects. Example: Add the Choice objects for a Poll.
    135135        for related in self.opts.get_all_related_objects():
    136136            # Create obj_list, which is a DotExpandedDict such as this:
Back to Top