-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
Description
When opening the Django admin page /admin/auth/user/add/, a TemplateSyntaxError is raised:
Steps to Reproduce
- Run the development server
- Go to http://127.0.0.1:8000/admin/auth/user/add/
- Observe the error
Actual Behavior
A TemplateSyntaxError occurs due to usage of the length_is filter, which is no longer available in Django 5.x.
Environment
- Django version: 5.2.7
- Python version: 3.11.0
- OS: macOS
- Browser: any
Suggested Fix
Remove the |length_is filter from affected templates (e.g. volt/templates/admin/...html)
and replace it with a standard check, for example:
{% if line.fields|length == 1 %}Metadata
Metadata
Assignees
Labels
No labels