Ticket #2434: manipulator_editinline_follow.patch

File manipulator_editinline_follow.patch, 734 bytes (added by anonymous, 18 years ago)
  • django/forms/__init__.py

     
    259259            for i, instance in enumerate(orig_list):
    260260                collection = {'original': instance}
    261261                for f in self.rel_obj.editable_fields():
     262                    if not self.parent_manipulator.follow.get(var_name, {}).get(f.name, True):
     263                        continue
    262264                    for field_name in f.get_manipulator_field_names(''):
    263265                        full_field_name = '%s.%d.%s' % (var_name, i, field_name)
    264266                        field = self.parent_manipulator[full_field_name]
Back to Top