Ticket #576: no_addanother_in_popup.diff
File no_addanother_in_popup.diff, 938 bytes (added by , 19 years ago) |
---|
-
django/views/admin/main.py
523 523 if not opts.admin.save_as or add: 524 524 t.append('{%% if not is_popup %%}<input type="submit" value="Save and add another" name="_addanother" %s/>{%% endif %%}' % \ 525 525 (ordered_objects and change and 'onclick="submitOrderForm();"' or '')) 526 t.append(' <input type="submit" value="Save and continue editing" name="_continue" %s/>' % \526 t.append('{%% if not is_popup %%}<input type="submit" value="Save and continue editing" name="_continue" %s/>{%% endif %%}' % \ 527 527 (ordered_objects and change and 'onclick="submitOrderForm();"' or '')) 528 528 t.append('<input type="submit" value="Save" class="default" %s/>' % \ 529 529 (ordered_objects and change and 'onclick="submitOrderForm();"' or ''))