Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed #576 - popups no longer show "save & continue" buttons. Thanks,…

… Hein-Pieter

git-svn-id: http://code.djangoproject.com/svn/django/trunk@731 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 2425907eacc8e315703404fd34faf242f5cc405b 1 parent 3dd1d28
@jacobian jacobian authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/views/admin/main.py
View
2  django/views/admin/main.py
@@ -523,7 +523,7 @@ def _get_submit_row_template(opts, app_label, add, change, show_delete, ordered_
if not opts.admin.save_as or add:
t.append('{%% if not is_popup %%}<input type="submit" value="Save and add another" name="_addanother" %s/>{%% endif %%}' % \
(ordered_objects and change and 'onclick="submitOrderForm();"' or ''))
- t.append('<input type="submit" value="Save and continue editing" name="_continue" %s/>' % \
+ t.append('{%% if not is_popup %%}<input type="submit" value="Save and continue editing" name="_continue" %s/>{%% endif %%}' % \
(ordered_objects and change and 'onclick="submitOrderForm();"' or ''))
t.append('<input type="submit" value="Save" class="default" %s/>' % \
(ordered_objects and change and 'onclick="submitOrderForm();"' or ''))
Please sign in to comment.
Something went wrong with that request. Please try again.