Skip to content

Commit be56191

Browse files
authored
fix: Correct search field in models.py (#56)
* Update models.py * Update CHANGELOG.rst
1 parent f1d2a06 commit be56191

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CHANGELOG.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,13 @@
22
Changelog
33
=========
44

5+
unpublished
6+
===========
7+
58
* Added support for Django 3.2, Django 4.0
69
* Added github actions
10+
* Fixed search_field to point to file_name
11+
712

813
3.0.0 (2020-09-02)
914
==================

djangocms_file/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class AbstractFile(CMSPlugin):
3939
"""
4040
Renders a file wrapped by an anchor
4141
"""
42-
search_fields = ('name',)
42+
search_fields = ('file_name',)
4343

4444
template = models.CharField(
4545
verbose_name=_('Template'),

0 commit comments

Comments
 (0)