Swen Kooij e6527fff4c Don't double key transform in lookups
In Django 4.2, `process_lhs()` is called for IsNull lookups,
which is how this bug came to appear. It was already there
and could be reproduced on Django 3.2.

The issue is when `LocalizedRef` is combined with a localized
lookup. The lookup is unaware of the existing localized ref
and adds another transform on top. This results in the
expression becoming:

```
field->'en'->'en'
```
2024-07-02 07:10:41 +03:00
..
2016-10-21 12:57:51 +03:00
2019-10-19 12:44:41 +03:00
2019-10-19 12:44:41 +03:00
2019-10-19 12:44:41 +03:00
2019-10-19 12:44:41 +03:00
2019-10-19 12:44:41 +03:00
2023-08-10 14:33:47 +02:00
2019-10-19 12:44:41 +03:00
2019-10-19 12:44:41 +03:00
2019-10-19 12:44:41 +03:00
2020-03-10 09:33:34 +02:00
2019-10-19 12:44:41 +03:00
2024-06-04 12:49:13 +03:00
2019-10-19 12:44:41 +03:00
2019-10-19 12:44:41 +03:00
2021-03-22 07:47:00 +02:00