From 30c7ce90c5b518696859fc667aa2996d0e7a43e4 Mon Sep 17 00:00:00 2001 From: Brian Rosner Date: Sun, 31 Aug 2008 17:13:29 +0000 Subject: [PATCH] Fixed #8631 -- Corrected a display issue with the popup submit_row where the Save button would overflow. Thanks btaylordesign for report and initial patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8762 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/contrib/admin/templates/admin/submit_line.html | 2 +- django/contrib/admin/templatetags/admin_modify.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/django/contrib/admin/templates/admin/submit_line.html b/django/contrib/admin/templates/admin/submit_line.html index 6eccbce45b..c5d673fa93 100644 --- a/django/contrib/admin/templates/admin/submit_line.html +++ b/django/contrib/admin/templates/admin/submit_line.html @@ -1,5 +1,5 @@ {% load i18n %} -
+
{% if show_save %}{% endif %} {% if show_delete_link %}

{% trans "Delete" %}

{% endif %} {% if show_save_as_new %}{%endif%} diff --git a/django/contrib/admin/templatetags/admin_modify.py b/django/contrib/admin/templatetags/admin_modify.py index 850127c8ce..19042faf94 100644 --- a/django/contrib/admin/templatetags/admin_modify.py +++ b/django/contrib/admin/templatetags/admin_modify.py @@ -33,6 +33,7 @@ def submit_row(context): 'show_save_and_add_another': context['has_add_permission'] and not is_popup and (not save_as or context['add']), 'show_save_and_continue': not is_popup and context['has_change_permission'], + 'is_popup': is_popup, 'show_save': True } submit_row = register.inclusion_tag('admin/submit_line.html', takes_context=True)(submit_row)