Ticket #5681: patch5681.diff
File patch5681.diff, 1.5 KB (added by , 16 years ago) |
---|
-
django/contrib/admin/options.py
774 774 'title': _('Add %s') % force_unicode(opts.verbose_name), 775 775 'adminform': adminForm, 776 776 'is_popup': request.REQUEST.has_key('_popup'), 777 'save_as_new': request.POST.has_key('_saveasnew'), 777 778 'show_delete': False, 778 779 'media': mark_safe(media), 779 780 'inline_admin_formsets': inline_admin_formsets, -
django/contrib/admin/templatetags/admin_modify.py
29 29 and 'onclick="submitOrderForm();"' or ''), 30 30 'show_delete_link': (not is_popup and context['has_delete_permission'] 31 31 and (change or context['show_delete'])), 32 'show_save_as_new': not is_popup and change and save_as,32 'show_save_as_new': not is_popup and ((change and save_as) or context['save_as_new']), 33 33 'show_save_and_add_another': context['has_add_permission'] and 34 34 not is_popup and (not save_as or context['add']), 35 35 'show_save_and_continue': not is_popup and context['has_change_permission'],