From 907e9cfe81708c4c3d960b925b8ace2c07d4f2a0 Mon Sep 17 00:00:00 2001 From: Vipul Narang Date: Tue, 7 May 2024 13:42:10 +0530 Subject: [PATCH] Added search capability for alias content admin --- 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"