From 225e94aa128c931c4c44e1aa01cd5013173510bd Mon Sep 17 00:00:00 2001 From: App Generator <51070104+app-generator@users.noreply.github.com> Date: Tue, 17 Sep 2024 06:52:19 +0300 Subject: [PATCH] v1.0.11 - Remove `length_is` filter --- CHANGELOG.md | 6 ++++++ admin_datta/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 6275f44..6f2b0f8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # CHANGELOG +## [1.0.11] 2024-09-17 +### Changes + +- Remove `length_is` filter + - Deprecated in Django 5.1 + ## [1.0.10] 2023-06-03 ### Changes diff --git a/admin_datta/templates/admin/includes/fieldset.html b/admin_datta/templates/admin/includes/fieldset.html index cf71e4e..9976964 100644 --- a/admin_datta/templates/admin/includes/fieldset.html +++ b/admin_datta/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 43fba16..f1f383d 100644 --- a/setup.py +++ b/setup.py @@ -8,7 +8,7 @@ setup( name='django-admin-datta', -version='1.0.10', +version='1.0.11', zip_safe=False, packages=find_packages(), include_package_data=True,