Ticket #13875: admin_modify.py.diff
File admin_modify.py.diff, 878 bytes (added by , 14 years ago) |
---|
-
django/contrib/admin/templatetags/admin_modify.py
27 27 change = context['change'] 28 28 is_popup = context['is_popup'] 29 29 save_as = context['save_as'] 30 return{30 extra_context = { 31 31 'onclick_attrib': (opts.get_ordered_objects() and change 32 32 and 'onclick="submitOrderForm();"' or ''), 33 33 'show_delete_link': (not is_popup and context['has_delete_permission'] … … 39 39 'is_popup': is_popup, 40 40 'show_save': True 41 41 } 42 context.update(extra_context) 43 return context 44 42 45 submit_row = register.inclusion_tag('admin/submit_line.html', takes_context=True)(submit_row)