diff options
| author | Anton Samarchyan <desecho@gmail.com> | 2017-01-10 11:24:28 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-01-10 11:24:28 -0500 |
| commit | 95f434e2b90b4fe4f0c933cdc987e3e165d713ff (patch) | |
| tree | 8f7b115cc687b33e34d87f00574567b460d4e4ff | |
| parent | 991cd69621f95acd2192ac62a08eb139d3e22215 (diff) | |
Fixed #27714 -- Fixed small visual artifact when clicking inline edit button in admin.
| -rw-r--r-- | django/contrib/admin/templates/admin/related_widget_wrapper.html | 2 | ||||
| -rw-r--r-- | django/contrib/admin/templates/admin/widgets/related_widget_wrapper.html | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/django/contrib/admin/templates/admin/related_widget_wrapper.html b/django/contrib/admin/templates/admin/related_widget_wrapper.html index f690d7c2b7..af17be8111 100644 --- a/django/contrib/admin/templates/admin/related_widget_wrapper.html +++ b/django/contrib/admin/templates/admin/related_widget_wrapper.html @@ -2,6 +2,7 @@ <div class="related-widget-wrapper"> {{ widget }} {% block links %} + {% spaceless %} {% if can_change_related %} <a class="related-widget-wrapper-link change-related" id="change_id_{{ name }}" data-href-template="{{ change_related_template_url }}?{{ url_params }}" @@ -23,5 +24,6 @@ <img src="{% static 'admin/img/icon-deletelink.svg' %}" alt="{% trans 'Delete' %}"/> </a> {% endif %} + {% endspaceless %} {% endblock %} </div> diff --git a/django/contrib/admin/templates/admin/widgets/related_widget_wrapper.html b/django/contrib/admin/templates/admin/widgets/related_widget_wrapper.html index 7bfb094c37..b6a4436953 100644 --- a/django/contrib/admin/templates/admin/widgets/related_widget_wrapper.html +++ b/django/contrib/admin/templates/admin/widgets/related_widget_wrapper.html @@ -2,6 +2,7 @@ <div class="related-widget-wrapper"> {% include widget.template_name %} {% block links %} + {% spaceless %} {% if can_change_related %} <a class="related-widget-wrapper-link change-related" id="change_id_{{ widget.name }}" data-href-template="{{ change_related_template_url }}?{{ url_params }}" @@ -23,5 +24,6 @@ <img src="{% static 'admin/img/icon-deletelink.svg' %}" alt="{% trans 'Delete' %}"/> </a> {% endif %} + {% endspaceless %} {% endblock %} </div> |
