From a7f1966a18f87279be630fa94ac8f24288ef3a93 Mon Sep 17 00:00:00 2001 From: App Generator <51070104+app-generator@users.noreply.github.com> Date: Mon, 16 Sep 2024 14:34:41 +0300 Subject: [PATCH] v1.0.13 - Remove length_is FILTER --- CHANGELOG.md | 6 ++++++ admin_soft/templates/admin/includes/fieldset.html | 8 ++++---- setup.py | 2 +- 3 files changed, 11 insertions(+), 5 deletions(-) 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,