diff options
| author | Jacob Kaplan-Moss <jacob@jacobian.org> | 2005-09-29 22:34:17 +0000 |
|---|---|---|
| committer | Jacob Kaplan-Moss <jacob@jacobian.org> | 2005-09-29 22:34:17 +0000 |
| commit | 2425907eacc8e315703404fd34faf242f5cc405b (patch) | |
| tree | a67d171f000bd19acfb8f6bc2c59622bf7d2c309 | |
| parent | 3dd1d28c7fd172f8aefeca1831c89ba2d85ee48f (diff) | |
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
| -rw-r--r-- | django/views/admin/main.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/views/admin/main.py b/django/views/admin/main.py index a6109a46cd..9283230b26 100644 --- a/django/views/admin/main.py +++ b/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 '')) |
