Skip to content

Commit

Permalink
fix: Correct search field in models.py (#56)
Browse files Browse the repository at this point in the history
* Update models.py

* Update CHANGELOG.rst
  • Loading branch information
fsbraun authored Jul 3, 2023
1 parent f1d2a06 commit be56191
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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)
==================
Expand Down
2 changes: 1 addition & 1 deletion djangocms_file/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down

0 comments on commit be56191

Please sign in to comment.