Skip to content

Commit

Permalink
v1.0.13 - Remove length_is FILTER
Browse files Browse the repository at this point in the history
  • Loading branch information
app-generator committed Sep 16, 2024
1 parent 0f927a2 commit a7f1966
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
8 changes: 4 additions & 4 deletions admin_soft/templates/admin/includes/fieldset.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
{% for line in fieldset %}
<div class="row">
<div class="{% if line.fields.0 in 'last_login, date_joined' %}col-md-6{% else %}col-md-12{% endif %}">
<div class="mb-4 {% if line.fields|length_is:'1' and line.errors %} errors{% endif %}{% if not line.has_visible_field %} hidden{% endif %}{% for field in line %}{% if field.field.name %} field-{{ field.field.name }}{% endif %}{% endfor %}">
{% if line.fields|length_is:'1' %}{{ line.errors }}{% endif %}
<div class="mb-4 {% if line.fields|length == 1 and line.errors %} errors{% endif %}{% if not line.has_visible_field %} hidden{% endif %}{% for field in line %}{% if field.field.name %} field-{{ field.field.name }}{% endif %}{% endfor %}">
{% if line.fields|length == 1 %}{{ line.errors }}{% endif %}
{% for field in line %}
{# <div{% if not line.fields|length_is:'1' %} class="fieldBox{% if field.field.name %} field-{{ field.field.name }}{% endif %}{% if not field.is_readonly and field.errors %} errors{% endif %}{% if field.field.is_hidden %} hidden{% endif %}"{% elif field.is_checkbox %} class="checkbox-row"{% endif %}>#}
{# <div{% if not line.fields|length == 1 %} class="fieldBox{% if field.field.name %} field-{{ field.field.name }}{% endif %}{% if not field.is_readonly and field.errors %} errors{% endif %}{% if field.field.is_hidden %} hidden{% endif %}"{% elif field.is_checkbox %} class="checkbox-row"{% endif %}>#}

{% 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 %}

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit a7f1966

Please sign in to comment.