Ticket #13875: admin_modify.py.diff

File admin_modify.py.diff, 878 bytes (added by drul, 14 years ago)

patch

  • django/contrib/admin/templatetags/admin_modify.py

     
    2727    change = context['change']
    2828    is_popup = context['is_popup']
    2929    save_as = context['save_as']
    30     return {
     30    extra_context = {
    3131        'onclick_attrib': (opts.get_ordered_objects() and change
    3232                            and 'onclick="submitOrderForm();"' or ''),
    3333        'show_delete_link': (not is_popup and context['has_delete_permission']
     
    3939        'is_popup': is_popup,
    4040        'show_save': True
    4141    }
     42    context.update(extra_context)
     43    return context
     44
    4245submit_row = register.inclusion_tag('admin/submit_line.html', takes_context=True)(submit_row)
Back to Top