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

chore: replace deprecated length_is template filter with length == #1037

Merged
merged 1 commit into from
Dec 14, 2023

Conversation

forrestp
Copy link
Contributor

From https://django.readthedocs.io/en/latest/releases/4.2.html

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

length_is will be removed in Django 5.1, see https://docs.djangoproject.com/en/dev/internals/deprecation/

I noticed this warning in a project using django-grappelli and figured I'd help get out ahead of the removal with a PR. Let me know if this need any additional testing or work!

@sehmaschine sehmaschine merged commit c114163 into sehmaschine:master Dec 14, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants