Skip to content

Commit

Permalink
chore: Release 3.1.4 (#1482)
Browse files Browse the repository at this point in the history
* Update CHANGELOG.rst

* Update __init__.py

* Fix: Crash when moving files from a filtered directory listing

Co-authored-by: @W1ldPo1nter

* Update CHANGELOG.rst
  • Loading branch information
fsbraun authored Jul 23, 2024
1 parent 1164e69 commit 4d8de83
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
14 changes: 12 additions & 2 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,22 @@
CHANGELOG
=========

3.1.3 (2025-05-17)
3.1.4 (2024-07-15)
==================

* feat: Accept new `STORAGES` setting, introduced in Django 4.2 by @fsbraun in https://github.com/django-cms/django-filer/pull/1472
* feat: Replace `render` with `TemplateResponse` in admin views by @fsbraun in https://github.com/django-cms/django-filer/pull/1473
* fix: File expand url incorrect and worked not with custom image models by @fsbraun in https://github.com/django-cms/django-filer/pull/1471
* fix: Crash when moving files from a filtered directory listing by @W1ldPo1nter in https://github.com/django-cms/django-filer/pull/1482
* ci: pre-commit autoupdate by @pre-commit-ci in https://github.com/django-cms/django-filer/pull/1477


3.1.3 (2024-05-17)
==================
* Fix: Folder select widget did not render correctly with standard Django admin
styles.

3.1.2 (2025-05-17)
3.1.2 (2024-05-17)
==================

* Made the filer check command compatible with custom image models.
Expand Down
2 changes: 1 addition & 1 deletion filer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
8. Publish the release and it will automatically release to pypi
"""

__version__ = '3.1.3'
__version__ = '3.1.4'
3 changes: 1 addition & 2 deletions filer/admin/folderadmin.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,14 +321,13 @@ def directory_listing(self, request, folder_id=None, viewtype=None):
order_by = request.GET.get('order_by', None)
order_by_annotation = None
if order_by is None:
file_qs = file_qs.annotate(coalesce_sort_field=Coalesce(
order_by_annotation = Lower(Coalesce(
Case(
When(name__exact='', then=None),
When(name__isnull=False, then='name')
),
'original_filename'
))
order_by_annotation = Lower('coalesce_sort_field')

order_by = order_by.split(',') if order_by else []
order_by = [field for field in order_by
Expand Down

0 comments on commit 4d8de83

Please sign in to comment.