django__django-15569
RegisterLookupMixin._unregister_lookup() should clear the lookup cache.
Verdict: the fix is stated in the issue (Tier A).
In current source code, in the _unregister_lookup method, https://github.com/django/django/blame/main/django/db/models/query_utils.py#L212, the cache is not cleared, which should be done, as it is done in register_lookup, https://github.com/django/django/blame/main/django/db/models/query_utils.py#L202.
The text states the fix: “In current source code, in the _unregister_lookup method, https://github.com/django/django/blame/main/django/db/models/query_utils.py#L212, the cache is not cleared, wh…”
All SWE-bench Verified tasks · more django/django tasks · How the check works