From be56191b390dd33a3c3a595c01fb5e98b7fadece Mon Sep 17 00:00:00 2001 From: Fabian Braun Date: Tue, 4 Jul 2023 00:34:37 +0200 Subject: [PATCH] fix: Correct search field in models.py (#56) * Update models.py * Update CHANGELOG.rst --- CHANGELOG.rst | 5 +++++ djangocms_file/models.py | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 75a411e..6b7b267 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -2,8 +2,13 @@ Changelog ========= +unpublished +=========== + * Added support for Django 3.2, Django 4.0 * Added github actions +* Fixed search_field to point to file_name + 3.0.0 (2020-09-02) ================== diff --git a/djangocms_file/models.py b/djangocms_file/models.py index 7cf5c2b..52ee1c8 100644 --- a/djangocms_file/models.py +++ b/djangocms_file/models.py @@ -39,7 +39,7 @@ class AbstractFile(CMSPlugin): """ Renders a file wrapped by an anchor """ - search_fields = ('name',) + search_fields = ('file_name',) template = models.CharField( verbose_name=_('Template'),