#36284: Related field popups are broken (selecting values works but the popup
doesn't close)
-------------------------------------+-------------------------------------
Reporter: Matthias Kestenholz | Type: Bug
Status: new | Component:
| contrib.admin
Version: 5.2 | Severity: Release
| blocker
Keywords: | Triage Stage:
| Unreviewed
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
https://github.com/django/django/commit/91bebf1adb43561b54bac18e76224759dc70acb3
broke the functionality by accessing `window.relatedWindows` instead of
the module-local `relatedWindows` variable; `window.relatedWindows` is
only defined when running the tests but not when running in the browser.
This affects all projects using `raw_id_fields` to select existing
objects.
The patch attached here fixes the problem and the unit test, but it's
obviously really ugly.
The problem wasn't discovered by me but by https://github.com/yoshson/ .
I'm reporting this here and now because of the expected release date of
Django 5.2.
--
Ticket URL: <https://code.djangoproject.com/ticket/36284>
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/01070195f161dd85-65b097a6-df46-4b2e-8df5-d23577f6f3ca-000000%40eu-central-1.amazonses.com.