#35738: Deprecate double-dot variable lookups
-------------------------------------+-------------------------------------
Reporter: Adam Johnson | Owner: David
Type: | Smith
Cleanup/optimization | Status: assigned
Component: Template system | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Rudraksha Dwivedi):
Replying to [comment:12 Natalia Bidart]:
> Updating flags and owner per recent updates. Setting as patch needs
improvements since the test suite fails with:
> {{{
> 2025-06-06T12:44:52.2074547Z
django.utils.deprecation.RemovedInDjango70Warning: Support double-dot
lookups '..' which maps to a lookup of the empty string is deprecated.
> 2025-06-06T12:44:52.2074799Z Template:
D:\a\django\django\django\contrib\auth\templates\auth\widgets\read_only_password_hash.html
> 2025-06-06T12:44:52.2074867Z Line: 4
> 2025-06-06T12:44:52.2074872Z
> 2025-06-06T12:44:52.2074985Z
----------------------------------------------------------------------
> 2025-06-06T12:44:52.2075066Z Ran 18153 tests in 228.830s
> 2025-06-06T12:44:52.2075071Z
> 2025-06-06T12:44:52.2075192Z FAILED (errors=24, skipped=1476, expected
failures=5)
> }}}
hi Natalia!
I wanted to understand why the patch needs improvement is set
the patch does seem to work
specifically, when i checkout on that branch; the tests have a diff. error
log when entire test suite is run
I think the patch provided by David has fixed the issue aptly
can you articulate if more work is needed? (if yes i'd like to work on
it!)
running the : tests/template_tests/syntax_tests/test_basic.py
results in no "Warnings" (as in python warning) are visible
--
Ticket URL: <https://code.djangoproject.com/ticket/35738#comment:13>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/django-updates/0107019bbc3e5848-47ae44ed-cb33-4792-be1d-111d7e9e3bc9-000000%40eu-central-1.amazonses.com.