diff --git a/CHANGELOG.md b/CHANGELOG.md index 10dbae39..872c0688 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # CHANGELOG +## [1.0.13] 2024-09-16 +### Changes + +- Remove `length_is` filter + - Deprecated in Django 5.1 + ## [1.0.12] 2023-04-04 ### Changes diff --git a/admin_soft/templates/admin/includes/fieldset.html b/admin_soft/templates/admin/includes/fieldset.html index afb813ad..56a8d1b6 100644 --- a/admin_soft/templates/admin/includes/fieldset.html +++ b/admin_soft/templates/admin/includes/fieldset.html @@ -7,12 +7,12 @@ {% for line in fieldset %}
-
- {% if line.fields|length_is:'1' %}{{ line.errors }}{% endif %} +
+ {% if line.fields|length == 1 %}{{ line.errors }}{% endif %} {% for field in line %} - {# #} + {# #} - {% if not line.fields|length_is:'1' and not field.is_readonly %} + {% if not line.fields|length == 1 and not field.is_readonly %} {{ field.errors }} {% endif %} diff --git a/setup.py b/setup.py index 014aed7a..a82ea59f 100644 --- a/setup.py +++ b/setup.py @@ -8,7 +8,7 @@ setup( name='django-admin-soft-dashboard', -version='1.0.12', +version='1.0.13', zip_safe=False, packages=find_packages(), include_package_data=True,