Ticket #576: no_addanother_in_popup.diff

File no_addanother_in_popup.diff, 938 bytes (added by hp@…, 19 years ago)
  • django/views/admin/main.py

     
    523523    if not opts.admin.save_as or add:
    524524        t.append('{%% if not is_popup %%}<input type="submit" value="Save and add another" name="_addanother" %s/>{%% endif %%}' % \
    525525            (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 %%}' % \
    527527        (ordered_objects and change and 'onclick="submitOrderForm();"' or ''))
    528528    t.append('<input type="submit" value="Save" class="default" %s/>' % \
    529529        (ordered_objects and change and 'onclick="submitOrderForm();"' or ''))
Back to Top