Ticket #1939: inline_multiple_foreign2.diff

File inline_multiple_foreign2.diff, 665 bytes (added by joe@…, 8 years ago)

simpler patch

  • main.py

    old new  
    202202    bound_field_sets = [field_set.bind(context['form'], original, AdminBoundFieldSet) for field_set in field_sets]
    203203    first_form_field_id = bound_field_sets[0].bound_field_lines[0].bound_fields[0].form_fields[0].get_id();
    204204    ordered_objects = opts.get_ordered_objects()
    205     inline_related_objects = opts.get_followed_related_objects(manipulator.follow)
     205    inline_related_objects = [o for o in opts.get_followed_related_objects(manipulator.follow) if o.edit_inline]
    206206    extra_context = {
    207207        'add': add,
    208208        'change': change,
Back to Top