Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The length_is template filter will be removed in 5.1 of Django. #535

Open
jamesgilmorelyst opened this issue Feb 28, 2024 · 1 comment · May be fixed by #534
Open

The length_is template filter will be removed in 5.1 of Django. #535

jamesgilmorelyst opened this issue Feb 28, 2024 · 1 comment · May be fixed by #534
Assignees
Labels
bug Something isn't working

Comments

@jamesgilmorelyst
Copy link

jamesgilmorelyst commented Feb 28, 2024

To add support for Django 5.1, the length_is feature is deprecated in 4.2 and is being removed in 5.1 [0], so it needs to be fixed.

Warning message when running Django-Jazzmin in v4.2 of Django:

RemovedInDjango51Warning: The length_is template filter is deprecated in favour of the length template filter and the == operator within an {% if %} tag.

[0] https://docs.djangoproject.com/en/dev/releases/5.1/#:~:text=The%20length_is%20template%20filter%20is%20removed.

@jamesgilmorelyst
Copy link
Author

Raised a PR to fix this issue:
#534

@farridav could you take a look at this PR, if you have time, please?

@jamesgilmorelyst jamesgilmorelyst added the bug Something isn't working label Mar 23, 2024
@jamesgilmorelyst jamesgilmorelyst self-assigned this Mar 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant