From 9c61530f6ca2757ae5ca910934d4c744491330f8 Mon Sep 17 00:00:00 2001 From: Vipul Narang <61502917+vipulnarang95@users.noreply.github.com> Date: Tue, 7 May 2024 14:05:38 +0530 Subject: [PATCH] Added search capability for alias content admin (#236) --- CHANGELOG.rst | 1 + djangocms_alias/admin.py | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index c0e94c8b..7f9d98b7 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -4,6 +4,7 @@ Changelog Unreleased ========== +* feat: Added search capability in AliasContent admin * Introduced Django 4.2 support. * Dropped Support for Django<3.1 diff --git a/djangocms_alias/admin.py b/djangocms_alias/admin.py index daac1022..886f4616 100644 --- a/djangocms_alias/admin.py +++ b/djangocms_alias/admin.py @@ -129,6 +129,7 @@ class AliasContentAdmin(*alias_content_admin_classes): form = AliasContentForm list_filter = alias_content_admin_list_filter list_display = alias_content_admin_list_display + search_fields = ["name"] # Disable dropdown actions actions = None change_form_template = "admin/djangocms_alias/aliascontent/change_form.html"