From ec1c0fa13d7a9b88bb07dfc627a08ceaa9b3fd71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A1bio=20Pinto?= Date: Thu, 10 Jul 2025 15:36:35 +0100 Subject: [PATCH 1/2] 5.1+ Fix (length_is deprecated and removed in Django 5.1) --- theme/templates/admin/includes/fieldset.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/theme/templates/admin/includes/fieldset.html b/theme/templates/admin/includes/fieldset.html index d2942c2..6ed1f4e 100644 --- a/theme/templates/admin/includes/fieldset.html +++ b/theme/templates/admin/includes/fieldset.html @@ -2,11 +2,11 @@
{% 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 %}{{ field.errors }}{% endif %} +
+ {% if not line.fields|length == '1' and not field.is_readonly %}{{ field.errors }}{% endif %} {% if field.is_checkbox %}
From cfa4e3c53dba4b4a3b838b3ce89e69488e92bc94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A1bio=20Pinto?= Date: Thu, 10 Jul 2025 15:38:29 +0100 Subject: [PATCH 2/2] bumps version --- theme/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/theme/__init__.py b/theme/__init__.py index 2f7dbfc..42c8daa 100644 --- a/theme/__init__.py +++ b/theme/__init__.py @@ -1,4 +1,4 @@ -__version__ = "0.0.14" +__version__ = "0.0.15" # set default_app_config when using django earlier than 3.2 try: