From 1116d6c60241c75489ac253eb68efebc0d39c833 Mon Sep 17 00:00:00 2001 From: Egor fureunoir Gorbunov Date: Tue, 1 Jul 2025 19:11:01 +0300 Subject: [PATCH] Features: 1) Add required static asset links for Select2 styles and scripts; 2) Enhance autocomplete list filter with improved styles and functionality; Fixes: 1) Fix indentation inconsistencies in HTML template; Extra: 1) Refactor inline script for improved readability; --- .../admin/autocomplete_list_filter.html | 39 +++++++++++-------- 1 file changed, 23 insertions(+), 16 deletions(-) diff --git a/core/templates/admin/autocomplete_list_filter.html b/core/templates/admin/autocomplete_list_filter.html index d90c8105..bad7d85b 100644 --- a/core/templates/admin/autocomplete_list_filter.html +++ b/core/templates/admin/autocomplete_list_filter.html @@ -1,27 +1,34 @@ {% load i18n static %} + + + + + + +
- {% if spec.lookup_val %} {% endif %}
- - -{# Only our own bootstrap script, using django.jQuery #}